[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 18:46:53 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: 3.3
Component: Performance | Version: 3.2.1
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+--------------------
Changes (by scribu):
* milestone: Awaiting Review => 3.3
Comment:
Talked to ryan on IRC, where I learned (heavily paraphrased) that duh! of
course posts should always be sanitized. The comment in the code was just
misleading.
Also, 18822.diff looks like a good idea. So, [attachment:18822.2.diff]:
* special handling for when 'filter' = 'raw' in get_post()
* use foreach + replace comment in WP_Query.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18822#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list