[wp-trac] [WordPress Trac] #56841: WordPress pagination broken after updating to 6.0

WordPress Trac noreply at wordpress.org
Fri Mar 1 09:37:11 UTC 2024


#56841: WordPress pagination broken after updating to 6.0
-------------------------------------------------+-------------------------
 Reporter:  wpfed                                |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  6.5
Component:  Query                                |     Version:  6.0
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing has-unit-    |     Focuses:  coding-
  tests                                          |  standards
-------------------------------------------------+-------------------------
Changes (by swissspidy):

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


Comment:

 I just added some unit tests to the existing PR at
 https://github.com/WordPress/wordpress-develop/pull/5635. That also helps
 as documentation of this issue to prevent regressions.

 Note that due to how queries can be constructed, there might still be some
 ''trailing'' whitespace. Right now, only ''leading'' whitespace is
 eliminated and tested in unit tests.

 So to clarify: is only the leading whitespace an issue, or also the
 trailing whitespace? For the latter we'd definitely need to use `trim()`.

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


More information about the wp-trac mailing list