[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 06:48:24 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:  closed
Component:  Permalinks                           |   Milestone:  4.4
 Severity:  normal                               |     Version:  3.4.2
 Keywords:  has-patch needs-unit-tests           |  Resolution:  fixed
  4.0-early                                      |     Focuses:
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):

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


Comment:

 In [changeset:"35195"]:
 {{{
 #!CommitTicketReference repository="" revision="35195"
 In `WP::parse_request()` and `url_to_postid()`, if a post slug clashes
 with a trashed page, return the post instead of the page.

 Props kovshenin, SergeyBiryukov, igmoweb.
 Fixes #21970.
 }}}

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


More information about the wp-trac mailing list