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

WordPress Trac noreply at wordpress.org
Thu Nov 15 18:09:38 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:  needs-unit-tests has-patch needs-    |
  testing                                        |
-------------------------------------------------+-------------------------

Comment (by ntm):

 The modifications suggested in 22448.diff solving the problem. The
 {{{$this->posts}}} array which gets modified via the the_posts filter hook
 stays the same passing the line {{{$this->posts = array_map( 'get_post',
 $this->posts );}}}
 in the /wp-includes/query.php file.

 Thank you kovshenin!

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


More information about the wp-trac mailing list