Anonymous users filters in Hooks.php broken
-
I have latest version of Cloudflare plugin. Have Cloudfrare on MANY sites. Recently converted most to use Flexible SSL.
All my sites are configured the same, especially the subdomains under my premium CF site.
But for some reason, only one site breaks the following code in Hooks.php:
public function __construct()
{
$this->config = new Integration\DefaultConfig(‘[]’);
$this->logger = new Integration\DefaultLogger(false);
$this->dataStore = new DataStore($this->logger);
$this->integrationAPI = new WordPressAPI($this->dataStore);
$this->integrationContext = new Integration\DefaultIntegration($this->config, $this->integrationAPI, $this->dataStore, $this->logger);
$this->api = new WordPressClientAPI($this->integrationContext);
$this->proxy = new Proxy($this->integrationContext);// Don’t allow “logged in” options to display to anonymous users
if ($this->isPluginSpecificCacheEnabled()) {
add_filter(‘show_admin_bar’, ‘__return_false’);
add_filter(‘edit_post_link’, ‘__return_null’);
}
}The // Don’t allow “logged in” options to display to anonymous users part is for some reason deciding to add the show_admin_bar and edit_post_link filters even though I’m logged in as the normal admin user to the site and the site uses the same CF credentials as all other sites on my main domain and subdomains.
I’ve wasted a huge amount of my time tracking this down – and I simply cannot find any difference in my configuration of this one subdomain than any of the other several subdomains on my premium account.
The topic ‘Anonymous users filters in Hooks.php broken’ is closed to new replies.