Changeset 48523 for trunk/src/wp-includes/sitemaps.php
- Timestamp:
- 07/21/2020 12:55:20 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/sitemaps.php
r48098 r48523 18 18 * @global WP_Sitemaps $wp_sitemaps Global Core Sitemaps instance. 19 19 * 20 * @return WP_Sitemaps |null Sitemaps instance, or null if sitemaps are disabled.20 * @return WP_Sitemaps Sitemaps instance. 21 21 */ 22 22 function wp_sitemaps_get_server() { … … 24 24 25 25 $is_enabled = (bool) get_option( 'blog_public' ); 26 27 /**28 * Filters whether XML Sitemaps are enabled or not.29 *30 * @since 5.5.031 *32 * @param bool $is_enabled Whether XML Sitemaps are enabled or not. Defaults to true for public sites.33 */34 $is_enabled = (bool) apply_filters( 'wp_sitemaps_enabled', $is_enabled );35 36 if ( ! $is_enabled ) {37 return null;38 }39 26 40 27 // If there isn't a global instance, set and bootstrap the sitemaps system.
Note: See TracChangeset
for help on using the changeset viewer.