From 17354cb06b0657da5b647a26d4ce6ac5e15029ad Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 19 Jun 2020 17:58:17 +0000 Subject: [PATCH] Sitemaps: Rename the `wp_sitemaps_is_enabled` filter to `wp_sitemaps_enabled`. This makes it more consistent with the other filters of the similar purpose. Props arpitgshah. Fixes #50428. See #50117. git-svn-id: https://develop.svn.wordpress.org/trunk@48094 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/sitemaps.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/sitemaps.php b/src/wp-includes/sitemaps.php index fcbdefe199..4abf5d2afc 100644 --- a/src/wp-includes/sitemaps.php +++ b/src/wp-includes/sitemaps.php @@ -31,7 +31,7 @@ function wp_sitemaps_get_server() { * * @param bool $is_enabled Whether XML Sitemaps are enabled or not. Defaults to true for public sites. */ - $is_enabled = (bool) apply_filters( 'wp_sitemaps_is_enabled', $is_enabled ); + $is_enabled = (bool) apply_filters( 'wp_sitemaps_enabled', $is_enabled ); if ( ! $is_enabled ) { return null;