[wp-trac] [WordPress Trac] #17551: Need a post_id query that works regardless of post_type.

WordPress Trac wp-trac at lists.automattic.com
Wed May 25 11:57:44 UTC 2011


#17551: Need a post_id query that works regardless of post_type.
-------------------------+------------------------------
 Reporter:  andy         |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Query        |     Version:  3.2
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------------------

Comment (by solarissmoke):

 Replying to [ticket:17551 andy]:
 > The query parameter `p` works for posts and pages but not attachments.
 When the ID in question refers to an attachment, the result is a 404. Why?

 But it doesn't issue a 404... it redirects to `?attachment_id=N`

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


More information about the wp-trac mailing list