[wp-trac] [WordPress Trac] #50910: 5.5 Sitemap URLs are incorrectly paginated

WordPress Trac noreply at wordpress.org
Sun Aug 16 04:52:15 UTC 2020


#50910: 5.5 Sitemap URLs are incorrectly paginated
--------------------------------------+-----------------------------
 Reporter:  jonathanstegall           |       Owner:  SergeyBiryukov
     Type:  defect (bug)              |      Status:  accepted
 Priority:  normal                    |   Milestone:  5.5.1
Component:  Sitemaps                  |     Version:  5.5
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------------

Comment (by peterwilsoncc):

 I've put together a [https://github.com/WordPress/wordpress-
 develop/pull/482 pull request] for this modifying `redirect_canonical()`
 further to account for sitemap pagination.

 I did investigate adding `is_sitemap()` and the required changes to `WP`
 and `WP_Query()` but either:
 * have no idea what I am doing
 * sitemaps don't use the main query

 I suspect the former, tbh, they're pretty deep internals.

 @swissspidy or @pbiron are you able to take a look at the PR to see if I
 am missing anything?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50910#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list