Undefined variable $htaccess_code
-
Hi there,
I get this log message printed at the top of the Plugins page:
Undefined variable $htaccess_code in ../wp-content/plugins/disable-xml-rpc-api/disable-xml-rpc-api.php:228I looked at the line mentioned in the message and found out that when “hotlink fix” is disabled, the variable
$htaccess_codeis never defined (first defined in theifblock, when hotlink fix is enabled). So, concatenating$htaccess_codecauses this warning message. I guess something like$htaccess_code = '';is required before the
ifblock.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Undefined variable $htaccess_code’ is closed to new replies.