Opened 6 years ago
Closed 6 years ago
#50724 closed defect (bug) (fixed)
Sitemaps: rename 'sitemap' to 'provider' in registry class
| Reported by: | swissspidy | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.5 |
| Component: | Sitemaps | Version: | 5.5 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
This would have helped prevent a bug like #50666.
This class is for registering sitemap providers, not individual sitemaps.
Attachments (4)
Change History (14)
#3
@
6 years ago
50724.2.diff additionally changes:
wp_get_sitemaps()towp_get_sitemaps_providers()- a couple of occurrences of
$sitemaps = $registry->get_providers()to$providers = $registry->get_providers()in the unit tests
#8
@
6 years ago
- Resolution fixed
- Status closed → reopened
Reviewing the draft sitemaps dev-note, I noticed one more function that needs to be renamed: wp_register_sitemap() to wp_register_sitemap_provider().
50724.4.diff does that.
This ticket was mentioned in Slack in #core-sitemaps by pbiron. View the logs.
6 years ago
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 48536: