[wp-trac] [WordPress Trac] #17935: function get_post( integer ) bypasses posts_* filters
WordPress Trac
wp-trac at lists.automattic.com
Wed Jun 29 20:11:43 UTC 2011
#17935: function get_post( integer ) bypasses posts_* filters
----------------------------+----------------------
Reporter: postpostmodern | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Query | Version: 3.2
Severity: normal | Resolution: invalid
Keywords: |
----------------------------+----------------------
Changes (by scribu):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
get_posts() uses WP_Query, which calls all the filters you mentioned.
get_post() fetches a single post, so it doesn't make any sense for it to
have those filters.
You will have to find another way to achieve what you want.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17935#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list