[wp-trac] [WordPress Trac] #46061: Canonical prevents accessing paginated results of feed-named tags

WordPress Trac noreply at wordpress.org
Tue Jan 7 04:27:23 UTC 2020


#46061: Canonical prevents accessing paginated results of feed-named tags
--------------------------+------------------------------
 Reporter:  dd32          |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Canonical     |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+------------------------------

Comment (by tellyworth):

 attachment:46061-tests.diff adds unit test cases to reproduce the problem.
 Example output:


 {{{
 There were 3 failures:

 1) Tests_Canonical::test_canonical with data set #11 ('/tag/feed/page/2/',
 array('/tag/feed/page/2/', array('foo', '2')), 46061)
 Ticket #46061
 Failed asserting that two strings are equal.
 --- Expected
 +++ Actual
 @@ @@
 -'/tag/feed/page/2/'
 +'/tag/page/2/'

 2) Tests_Canonical::test_canonical with data set #12 ('/tag/rss/page/2/',
 array('/tag/rss/page/2/', array('rss', '2')), 46061)
 Ticket #46061
 Failed asserting that two strings are equal.
 --- Expected
 +++ Actual
 @@ @@
 -'/tag/rss/page/2/'
 +'/tag/page/2/'

 3) Tests_Canonical::test_canonical with data set #13
 ('/category/atom/page/2/', array('/category/atom/page/2/', array('feed',
 '2')), 46061)
 Ticket #46061
 Failed asserting that two strings are equal.
 --- Expected
 +++ Actual
 @@ @@
 -'/category/atom/page/2/'
 +'/category/page/2/'
 }}}

 Note that this is a similar bug to #39535.

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


More information about the wp-trac mailing list