Squashing of global variables
-
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)
Viewing 1 replies (of 1 total)
- The topic ‘Squashing of global variables’ is closed to new replies.