Skip to content

Commit

Permalink
Fix PHP Fatal error: Call to undefined method applyWpFilters()
Browse files Browse the repository at this point in the history
  • Loading branch information
raamdev committed Jul 9, 2016
1 parent d817020 commit d59682e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/includes/classes/AutoCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ protected function getSitemapUrlsDeep($sitemap, $___recursive = false)
if (!$this->plugin->autoCacheCheckXmlSitemap($sitemap, $___recursive, $this->is_child_blog)) {
goto finale; // Nothing we can do.
}
if (!$allow_url_fopen || $this->applyWpFilters(GLOBAL_NS.'_auto_cache_sitemap_force_wp_http_api', false)) { // Try the WP HTTP API instead.
if (!$allow_url_fopen || $this->plugin->applyWpFilters(GLOBAL_NS.'_auto_cache_sitemap_force_wp_http_api', false)) { // Try the WP HTTP API instead.
$sitemap = $this->plugin->autoCacheWpRemoteGetXmlSitemap($sitemap);
}

Expand All @@ -289,7 +289,7 @@ protected function getSitemapUrlsDeep($sitemap, $___recursive = false)
unset($_sitemapindex_urls, $_urlset_urls);
}

if (!$allow_url_fopen || $this->applyWpFilters(GLOBAL_NS.'_auto_cache_sitemap_force_wp_http_api', false)) {
if (!$allow_url_fopen || $this->plugin->applyWpFilters(GLOBAL_NS.'_auto_cache_sitemap_force_wp_http_api', false)) {
unlink($sitemap); // Delete temp file downloaded by cURL
}

Expand Down

0 comments on commit d59682e

Please sign in to comment.