[wp-trac] [WordPress Trac] #17337: wp_old_slug_redirect() fails with multiple post_type query

WordPress Trac noreply at wordpress.org
Fri Feb 21 17:34:39 UTC 2014


#17337: wp_old_slug_redirect() fails with multiple post_type query
--------------------------+------------------------
 Reporter:  joehoyle      |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Canonical     |     Version:  3.1
 Severity:  normal        |  Resolution:  duplicate
 Keywords:                |     Focuses:
--------------------------+------------------------
Changes (by SergeyBiryukov):

 * status:  new => closed
 * resolution:   => duplicate
 * milestone:  Awaiting Review =>


Comment:

 Replying to [comment:1 mordauk]:
 > Why would a redirect need to happen on a query for multiple post types?
 The `wp_old_slug_redirect()` should only happen (I think) when a query
 attempts to retrieve a single item, not a list of items.

 That query retrieves a single item.

 This is, however, a duplicate of #16949.

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


More information about the wp-trac mailing list