mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-08 22:54:36 +00:00
Docs: Document globals in WP_Sitemaps_* classes the same way they are documented in the rest of core.
See #49572, #50117. git-svn-id: https://develop.svn.wordpress.org/trunk@48093 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -15,16 +15,11 @@
|
||||
*
|
||||
* @since 5.5.0
|
||||
*
|
||||
* @global WP_Sitemaps $wp_sitemaps Global Core Sitemaps instance.
|
||||
*
|
||||
* @return WP_Sitemaps|null Sitemaps instance, or null if sitemaps are disabled.
|
||||
*/
|
||||
function wp_sitemaps_get_server() {
|
||||
/**
|
||||
* Global Core Sitemaps instance.
|
||||
*
|
||||
* @since 5.5.0
|
||||
*
|
||||
* @var WP_Sitemaps $wp_sitemaps
|
||||
*/
|
||||
global $wp_sitemaps;
|
||||
|
||||
$is_enabled = (bool) get_option( 'blog_public' );
|
||||
|
||||
Reference in New Issue
Block a user