Repository navigation
Commit a844bea
committed
Sitemaps: Render empty sitemap when URL's filtered to empty list.
Modifies the site maps to render a valid site map for each URL listed on the sitemap index page, ie `/wp-sitemap.xml`.
This changes the response code for sitemaps return an empty URL list via the `wp_sitemaps_{$sitemap_type}_pre_url_list` and related filters. This ensures that all sitemap URLs submitted to search engines via the index respond with a 200 OK response.
Props adrianduffell, audrasjb, cybr, devansh2002, im3dabasia1, masteradhoc, westonruter, wildworks.
Fixes #61293.
git-svn-id: https://develop.svn.wordpress.org/trunk@64792 602fd350-edb4-49c9-b593-d223f7449a821 parent c6d4745 commit a844bea
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
208 | | - | |
| 207 | + | |
| 208 | + | |
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| |||
0 commit comments