Deprecated call in DereferenceShortcodeVars.php
-
Greetings, Michael
First, thank you for the time and effort you put into this plugin. I think it’s fantastic.
I’ve started getting a deprecated call warning with your plugin.
Argument in WP_User->id()
Used in wp-content/plugins/contact-form-7-to-database-extension/DereferenceShortcodeVars.php on line 36.When I investigated, I saw something that . . . and I’m making an inference here, mind you . . . makes me think you are already aware of the issue, but perhaps leaving the original code in place for backwards compatibility with older versions of the various contact form plugins?
Here’s the snippet I’m referring to, for context (lines 35 and 36).
$retValue = str_replace('$ID', $current_user->ID, $retValue); $retValue = str_replace('$id', @$current_user->id, $retValue); // deprecated
Can you confirm if line 36 needs to remain in place for some reason? Or am I reading way too much significance into that comment tag, and can just safely remove line 36 entirely?
Thank you.
https://www.ads-software.com/plugins/contact-form-7-to-database-extension/
- The topic ‘Deprecated call in DereferenceShortcodeVars.php’ is closed to new replies.