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:228
I looked at the line mentioned in the message and found out that when “hotlink fix” is disabled, the variable
$htaccess_code
is never defined (first defined in theif
block, when hotlink fix is enabled). So, concatenating$htaccess_code
causes this warning message. I guess something like$htaccess_code = '';
is required before the
if
block.
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.