[wp-trac] [WordPress Trac] #19693: redirect_guess_404_permalink() can catch the wrong post types

WordPress Trac wp-trac at lists.automattic.com
Sun May 6 20:38:58 UTC 2012


#19693: redirect_guess_404_permalink() can catch the wrong post types
------------------------------+-----------------------
 Reporter:  nacin             |       Owner:  nacin
     Type:  defect (bug)      |      Status:  reopened
 Priority:  normal            |   Milestone:  3.4
Component:  Canonical         |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+-----------------------
Changes (by jeremyfelt):

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


Comment:

 In the current state, if I have a post type registered as {{{( 'public' =>
 true, 'publicly_queryable' => false )}}},
 {{{redirect_guess_404_permalink()}}} will attempt to redirect '/blah' to
 '/non-publicly-queryable/blah/', resulting in a 404 at the new URL.

 [attachment:19693.3.diff] corrects this by adding {{{ 'publicly_queryable'
 => true }}} as a second argument to {{{get_post_types()}}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19693#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list