Sitemaps: Rename `wp_register_sitemap()` to `wp_register_sitemap_provider()`.
Follow-up to [48536], [48540], [48541]. Props pbiron. Fixes #50724. Built from https://develop.svn.wordpress.org/trunk@48553 git-svn-id: http://core.svn.wordpress.org/trunk@48315 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
94d4561906
commit
00861d91dc
|
@ -63,7 +63,7 @@ function wp_get_sitemap_providers() {
|
|||
* @param WP_Sitemaps_Provider $provider The `Sitemaps_Provider` instance implementing the sitemap.
|
||||
* @return bool Returns true if the sitemap was added. False on failure.
|
||||
*/
|
||||
function wp_register_sitemap( $name, WP_Sitemaps_Provider $provider ) {
|
||||
function wp_register_sitemap_provider( $name, WP_Sitemaps_Provider $provider ) {
|
||||
$sitemaps = wp_sitemaps_get_server();
|
||||
return $sitemaps->registry->add_provider( $name, $provider );
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.5-beta3-48552';
|
||||
$wp_version = '5.5-beta3-48553';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue