[wp-trac] Re: [WordPress Trac] #2712: Need filter for posts after
get results and before post status check
WordPress Trac
wp-trac at lists.automattic.com
Wed May 10 01:42:58 GMT 2006
#2712: Need filter for posts after get results and before post status check
-------------------------+--------------------------------------------------
Id: 2712 | Status: new
Component: General | Modified: Wed May 10 01:42:58 2006
Severity: enhancement | Milestone: 2.1
Priority: normal | Version: 2.1
Owner: anonymous | Reporter: ev3rywh3re
-------------------------+--------------------------------------------------
Comment (by ev3rywh3re):
I was thinking about that, or walking through members of the category used
by the plugin and marking them as published.
I just happened to notice that that location in query.php is ripe for a
filter. Some plug in authors may want to manipulate posts before the post
array is sanitized by user and post type. Another option could be to move
the_posts filter to act before the post type checks. Then you can do a
temporary change to post type in the array instead.
I think my only concern was manipulation of post type in the database. I
thought the "future" post type is fitting (for this plugin)and I didn't
want to destroy that methodology if the plugin is disabled. I was happy to
see the post type changes and the updates to the category code.. It's so
much more elegant now.
I am not the orginal author of the plugin, but I am hoping to send the
revisions back to someone to clean up.
--
Ticket URL: <http://trac.wordpress.org/ticket/2712>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list