[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 13:27:37 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 andy):
Replying to [comment:2 nacin]:
> Is this something that can be done from a plugin?
Of course. Plugins are limited in power only by who writes them. I
wondered whether `p` was this way by design or by accident. If by
accident, we can fix it. If by design, we can design a new parameter. If
core doesn't want that, I'll put it in the plugin.
Replying to [comment:3 solarissmoke]:
> But it doesn't issue a 404... it redirects to `?attachment_id=N`
Compare http://ma.tt/?p=38232 and http://ma.tt/?attachment_id=38232. The
parent post is published yet the 'p=' query produces a 404, not a
redirect.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17551#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list