diff --git a/.gitchange b/.gitchange index 847b5616..5ac1da7d 100644 --- a/.gitchange +++ b/.gitchange @@ -1,3 +1 @@ -1491589996 -2ea258a033ce686450ef6bccbc0f66efdba74ac1:58ffb9673670b6.69941207 -d0e05c36184f81b133761b71ca6ee0136be67409:5928a421a111c6.72961003 +1505001797 diff --git a/src/includes/classes/Actions.php b/src/includes/classes/Actions.php index 3ebcb877..88664ea8 100644 --- a/src/includes/classes/Actions.php +++ b/src/includes/classes/Actions.php @@ -596,7 +596,7 @@ protected function saveOptions($args) if ($this->plugin->isApache() && !($add_wp_htaccess = $this->plugin->addWpHtaccess())) { $query_args[GLOBAL_NS.'_wp_htaccess_add_failure'] = '1'; } - if ($this->plugin->isNginx() && $this->plugin->applyWpFilters(GLOBAL_NS.'_wp_htaccess_nginx_notice', true) + if ($this->plugin->isNginx() && apply_filters(GLOBAL_NS.'_wp_htaccess_nginx_notice', true) && (!isset($_SERVER['WP_NGINX_CONFIG']) || $_SERVER['WP_NGINX_CONFIG'] !== 'done')) { $query_args[GLOBAL_NS.'_wp_htaccess_nginx_notice'] = '1'; } @@ -669,7 +669,7 @@ protected function restoreDefaultOptions($args) if ($this->plugin->isApache() && !($add_wp_htaccess = $this->plugin->addWpHtaccess())) { $query_args[GLOBAL_NS.'_wp_htaccess_add_failure'] = '1'; } - if ($this->plugin->isNginx() && $this->plugin->applyWpFilters(GLOBAL_NS.'_wp_htaccess_nginx_notice', true) + if ($this->plugin->isNginx() && apply_filters(GLOBAL_NS.'_wp_htaccess_nginx_notice', true) && (!isset($_SERVER['WP_NGINX_CONFIG']) || $_SERVER['WP_NGINX_CONFIG'] !== 'done')) { $query_args[GLOBAL_NS.'_wp_htaccess_nginx_notice'] = '1'; } diff --git a/src/includes/classes/AutoCache.php b/src/includes/classes/AutoCache.php index 19e20fbe..3858cc45 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->plugin->applyWpFilters(GLOBAL_NS.'_auto_cache_sitemap_force_wp_http_api', false)) { // Try the WP HTTP API instead. + if (!$allow_url_fopen || apply_filters(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->plugin->applyWpFilters(GLOBAL_NS.'_auto_cache_sitemap_force_wp_http_api', false)) { + if (!$allow_url_fopen || apply_filters(GLOBAL_NS.'_auto_cache_sitemap_force_wp_http_api', false)) { unlink($sitemap); // Delete temp file downloaded by cURL } diff --git a/src/includes/classes/MenuPage/Options/HostExclusions.php b/src/includes/classes/MenuPage/Options/HostExclusions.php index 72d288b4..753b259d 100644 --- a/src/includes/classes/MenuPage/Options/HostExclusions.php +++ b/src/includes/classes/MenuPage/Options/HostExclusions.php @@ -22,7 +22,7 @@ public function __construct() $exclude_hosts_option_enable = is_multisite() && ((defined('SUBDOMAIN_INSTALL') && SUBDOMAIN_INSTALL) || $this->plugin->canConsiderDomainMapping()); - if ($this->plugin->applyWpFilters(GLOBAL_NS.'_exclude_hosts_option_enable', $exclude_hosts_option_enable)) { + if (apply_filters(GLOBAL_NS.'_exclude_hosts_option_enable', $exclude_hosts_option_enable)) { echo '