[wp-trac] [WordPress Trac] #21970: 404 error when a post has the same slug as with a deleted (trash) page.

WordPress Trac noreply at wordpress.org
Thu Oct 15 09:06:45 UTC 2015


#21970: 404 error when a post has the same slug as with a deleted (trash) page.
-------------------------------------------------+-------------------------
 Reporter:  janintia                             |       Owner:
     Type:  defect (bug)                         |  SergeyBiryukov
 Priority:  normal                               |      Status:  reopened
Component:  Permalinks                           |   Milestone:  4.4
 Severity:  normal                               |     Version:  3.4.2
 Keywords:  has-patch needs-unit-tests           |  Resolution:
  4.0-early                                      |     Focuses:
-------------------------------------------------+-------------------------
Changes (by ocean90):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 [35195] produces a unit test failure:


 {{{
 $ phpunit --group rewrite

 1) Tests_Query_VerbosePageRules::test_post_attachment
 is_single, is_attachment, is_singular should be true. is_404 should be
 false.
 Failed asserting that false is true.

 /srv/www/wp-develop/svn/tests/phpunit/includes/testcase.php:550
 /srv/www/wp-develop/svn/tests/phpunit/tests/query/conditionals.php:599
 }}}

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


More information about the wp-trac mailing list