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.php

    r48523 r48536  
    5959    }
    6060
    61     return $sitemaps->registry->get_sitemaps();
     61    return $sitemaps->registry->get_providers();
    6262}
    6363
     
    7878    }
    7979
    80     return $sitemaps->registry->add_sitemap( $name, $provider );
     80    return $sitemaps->registry->add_provider( $name, $provider );
    8181}
    8282
Note: See TracChangeset for help on using the changeset viewer.