[wp-trac] [WordPress Trac] #33920: `wp_old_slug_redirect` ignores rewrite endpoints

WordPress Trac noreply at wordpress.org
Thu Sep 24 11:19:20 UTC 2015


#33920: `wp_old_slug_redirect` ignores rewrite endpoints
--------------------------+------------------
 Reporter:  swissspidy    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.4
Component:  Query         |     Version:  2.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------

Comment (by pento):

 Unit tests are passing when they're run by themselves, but not when
 they're run as part of the full suite.

 {{{
 3) Tests_Rewrite_OldSlugRedirect::test_old_slug_redirect
 is_404 should be true. is_single, is_singular should be false.
 Failed asserting that false is true.

 /srv/www/wordpress-develop/tests/phpunit/includes/testcase.php:492
 /srv/www/wordpress-
 develop/tests/phpunit/tests/rewrite/oldSlugRedirect.php:62

 4) Tests_Rewrite_OldSlugRedirect::test_old_slug_redirect_endpoint
 is_404 should be true. is_single, is_singular should be false.
 Failed asserting that false is true.

 /srv/www/wordpress-develop/tests/phpunit/includes/testcase.php:492
 /srv/www/wordpress-
 develop/tests/phpunit/tests/rewrite/oldSlugRedirect.php:80

 5) Tests_Rewrite_OldSlugRedirect::test_old_slug_redirect_feed
 Failed asserting that null matches expected
 'http://example.org/?p=1087/feed/'.

 /srv/www/wordpress-
 develop/tests/phpunit/tests/rewrite/oldSlugRedirect.php:99
 }}}

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


More information about the wp-trac mailing list