[wp-trac] [WordPress Trac] #16949: Custom post types: error on page if query contains multiple post types

WordPress Trac noreply at wordpress.org
Thu Aug 8 14:14:40 UTC 2013


#16949: Custom post types: error on page if query contains multiple post types
--------------------------+-----------------------------
 Reporter:  mastermind    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Post Types    |     Version:  3.1
 Severity:  normal        |  Resolution:
 Keywords:  2nd-opinion   |
--------------------------+-----------------------------
Changes (by aaroncampbell):

 * keywords:  has-patch 2nd-opinion => 2nd-opinion


Comment:

 What's left here is making `wp_old_slug_redirect()` work it's magic even
 on queries with more than one post type.  I'm on the fence.  The guessing
 won't be as accurate, but then again it'll be better than it is now.  The
 question is: How many times, when multiple post types are queried, would
 it be beneficial to redirect based on `_wp_old_slug` meta?

 Honestly, it seems like the redirects that happen would be pretty accurate
 since they're based on _wp_old_slug, but it's also really simple to hook
 into `template_redirect` and handle this stuff yourself if you're
 modifying the query.

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


More information about the wp-trac mailing list