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

WordPress Trac noreply at wordpress.org
Tue Aug 25 21:22:24 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 needs-      |     Focuses:
  testing                                        |
-------------------------------------------------+-------------------------
Changes (by pbiron):

 * keywords:  has-patch has-unit-tests => has-patch has-unit-tests needs-
     testing


Comment:

 [attachment:"50910.2.diff"] is just like [attachment:"50910.diff"], with
 the following minor differences:

 1. in `redirect_canonical()` it checks for the sitemaps case first, before
 checking for uses of `paged`.  Functionally it's the same but it
 simplifies the conditional
 2. removes a "debugging" `@group bar` tag I had added to some of the unit
 tests...that allowed me to just run those tests while developing them

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


More information about the wp-trac mailing list