[wp-trac] [WordPress Trac] #50666: Size limit not correctly applied for sitemaps index
WordPress Trac
noreply at wordpress.org
Wed Jul 15 08:39:27 UTC 2020
#50666: Size limit not correctly applied for sitemaps index
--------------------------+------------------------------------------
Reporter: swissspidy | Owner: swissspidy
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 5.5
Component: Sitemaps | Version: trunk
Severity: normal | Keywords: needs-patch needs-unit-tests
Focuses: |
--------------------------+------------------------------------------
Sitemaps have a few [https://www.sitemaps.org/protocol.html#index size
restrictions]:
* each Sitemap file that you provide must have no more than 50,000 URLs
* Sitemap index files may not list more than 50,000 Sitemaps
The latter is seemingly enforced in
`\WP_Sitemaps_Registry::get_sitemaps()`, but actually this method only
limits the number of sitemap providers, not the amount of sitemaps all
providers add to the index in total.
Thus, this logic needs to be moved to
`\WP_Sitemaps_Index::get_sitemap_list()`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50666>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list