[wp-trac] [WordPress Trac] #18822: get_permalink() produces an add. DB request without $post->filter

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 30 13:21:41 UTC 2011


#18822: get_permalink() produces an add. DB request without $post->filter
--------------------------+------------------------------
 Reporter:  F J Kaiser    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Performance   |     Version:  3.2.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------
Changes (by scribu):

 * type:  enhancement => defect (bug)
 * severity:  major => normal


Comment:

 Actually, I think the bug is that WP_Query runs sanitize_post() even when
 'cache_results' is false.

 See [attachment:18822.alt.diff].

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


More information about the wp-trac mailing list