[wp-trac] [WordPress Trac] #14958: Add a "get_post" filter to get_post()

WordPress Trac wp-trac at lists.automattic.com
Sat Sep 25 14:33:42 UTC 2010


#14958: Add a "get_post" filter to get_post()
--------------------------+-------------------------------------------------
 Reporter:  mikeschinkel  |       Owner:                 
     Type:  enhancement   |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:                 
 Severity:  normal        |    Keywords:                 
--------------------------+-------------------------------------------------
Changes (by mikeschinkel):

 * cc: mikeschinkel@… (removed)


Comment:

 Replying to [comment:2 Denis-de-Bernardy]:
 > You can use the_posts and the_post in the meanwhile.

 Thanks. OTOH, you are aware that 'the_post' is called by
 `setup_postdata($post)` which is not relevant in the use-case that caused
 me to need this.  FWIW, I was wanted to add in the addition values so that
 when so that when a `wp_insert_post_data()` was later called the post
 would have everything needed to save correctly. So I was not needed
 anything related to the loop here.

 -Mike

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


More information about the wp-trac mailing list