WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/21/2020 08:13:59 PM (15 months ago)
Author:
SergeyBiryukov
Message:

Sitemaps: Rename wp_register_sitemap() to wp_register_sitemap_provider().

Follow-up to [48536], [48540], [48541].

Props pbiron.
Fixes #50724.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/sitemaps.php

    r48541 r48553  
    6464 * @return bool Returns true if the sitemap was added. False on failure.
    6565 */
    66 function wp_register_sitemap( $name, WP_Sitemaps_Provider $provider ) {
     66function wp_register_sitemap_provider( $name, WP_Sitemaps_Provider $provider ) {
    6767    $sitemaps = wp_sitemaps_get_server();
    6868    return $sitemaps->registry->add_provider( $name, $provider );
Note: See TracChangeset for help on using the changeset viewer.