[wp-trac] [WordPress Trac] #22448: WP_Post conversion overwrites object changes on the_posts filter

WordPress Trac noreply at wordpress.org
Sat Nov 17 13:53:22 UTC 2012


#22448: WP_Post conversion overwrites object changes on the_posts filter
------------------------------+-----------------------
 Reporter:  ntm               |       Owner:  ryan
     Type:  defect (bug)      |      Status:  assigned
 Priority:  high              |   Milestone:  3.5
Component:  Query             |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+-----------------------
Changes (by scribu):

 * keywords:  has-patch needs-testing commit => has-patch commit


Comment:

 It took me a while to figure out where $_post was comming from in the
 elseif block. [attachment:22448.3.diff] just makes the call to
 wp_cache_get() more explicit.

 Other than that, looks good.

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


More information about the wp-trac mailing list