[wp-trac] [WordPress Trac] #22162: WP_Query must convert posts to WP_Post objects after filters are run

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 12 13:25:12 UTC 2012


#22162: WP_Query must convert posts to WP_Post objects after filters are run
--------------------------+--------------------
 Reporter:  nacin         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.5
Component:  Query         |     Version:  trunk
 Severity:  critical      |  Resolution:
 Keywords:                |
--------------------------+--------------------

Comment (by scribu):

 > Maybe we should check the count before and after the filters run and and
 re-map the array if the count changed.

 I don't think that's a good heuristic. Maybe some plugin just replaces one
 post with another.

 Always running array_map() shouldn't be too expensive.

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


More information about the wp-trac mailing list