Make WordPress Core


Ignore:
Timestamp:
07/21/2020 03:27:48 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Sitemaps: Rename 'sitemap' to 'provider' in WP_Sitemaps_Registry class.

This class is for registering sitemap providers, not individual sitemaps.

Props swissspidy.
Fixes #50724.

File:
1 edited

Legend:

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

    r48532 r48536  
    5555        $sitemaps = array();
    5656
    57         $providers = $this->registry->get_sitemaps();
     57        $providers = $this->registry->get_providers();
    5858        /* @var WP_Sitemaps_Provider $provider */
    5959        foreach ( $providers as $name => $provider ) {
Note: See TracChangeset for help on using the changeset viewer.