From d59682e2408d32e4fc8071ffb64cc812d7e49108 Mon Sep 17 00:00:00 2001 From: Raam Dev Date: Sat, 9 Jul 2016 10:49:55 -0400 Subject: [PATCH] Fix PHP Fatal error: Call to undefined method applyWpFilters() See websharks/comet-cache#795 --- src/includes/classes/AutoCache.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/includes/classes/AutoCache.php b/src/includes/classes/AutoCache.php index 17fba176..19e20fbe 100644 --- a/src/includes/classes/AutoCache.php +++ b/src/includes/classes/AutoCache.php @@ -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); } @@ -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 }