[wp-trac] [WordPress Trac] #47911: redirect_guess_404_permalink does not consider public custom posts status

WordPress Trac noreply at wordpress.org
Fri Apr 1 03:23:21 UTC 2022


#47911: redirect_guess_404_permalink does not consider public custom posts status
-------------------------------------------------+-------------------------
 Reporter:  goaroundagain                        |       Owner:
                                                 |  peterwilsoncc
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  6.0
Component:  Canonical                            |     Version:  5.2.2
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests early       |     Focuses:
  needs-dev-note                                 |
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):

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


Comment:

 In [changeset:"53043" 53043]:
 {{{
 #!CommitTicketReference repository="" revision="53043"
 Canonical: Include all public status in 404 redirects.

 In `redirect_guess_404_permalink()` search for posts using all publicly
 queryable statuses rather than limiting options to the `publish` status.

 Props goaroundagain, costdev, htdat, audrasjb, chaion07.
 Fixes #47911.
 }}}

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


More information about the wp-trac mailing list