• Resolved writeraccess

    (@writeraccess)


    Seems the plugin initialization script uses $maxMemory and $last in the global scope, causing one of my custom templates to pre-fill a contact’s last name form element with “m”.

    Any chance of renaming the $last variable, or otherwise removing it from global scope?

    if(! defined('WORDFENCE_VERSIONONLY_MODE')){ //Used to get version from file.
    	$maxMemory = @ini_get('memory_limit');
    	$last = strtolower(substr($maxMemory, -1));
    	$maxMemory = (int) $maxMemory;
Viewing 1 replies (of 1 total)
  • Can you can reach out with this request to feedback [at] wordfence [dot] com? We can better handle that there. Since this isn’t a problem on anyone else’s sites have you considered renaming your custom script variable instead? Let us know when you send the email.

    Tim

Viewing 1 replies (of 1 total)
  • The topic ‘Squashing of global variables’ is closed to new replies.