Some codes not running perfectly in a subsite of a multisite install
-
Hi. I was trying to remove this tag from my HTML code:
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://www.localdomain/xmlrpc.php?rsd" />
Because it points to a broken link, when Completely Block Access To XMLRPC is set.
I included the following code inside the script wp-security-general-init-tasks.php
:// Do init time tasks global $aio_wp_security; // +++++ added code +++++ if ($aio_wp_security->configs->get_value('aiowps_enable_pingback_firewall') == '1') { remove_action( 'wp_head', 'rsd_link' ); }
However, I noticed that it works only in the root site of my multisite install. In a subsite, the variables:
$aio_wp_security->configs->get_value('aiowps_enable_pingback_firewall') ($aio_wp_security->configs->get_value('aiowps_disable_xmlrpc_pingback_methods')
are always empty! Not only my added code will not run; your code below does not run either in a subsite:
// your code if ($aio_wp_security->configs->get_value('aiowps_disable_xmlrpc_pingback_methods') == '1') { add_filter( 'xmlrpc_methods', array(&$this, 'aiowps_disable_xmlrpc_pingback_methods') ); add_filter( 'wp_headers', array(&$this, 'aiowps_remove_x_pingback_header') ); }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Some codes not running perfectly in a subsite of a multisite install’ is closed to new replies.