[wp-trac] [WordPress Trac] #20011: Filtering posts for plugins that do not call posts to be filtered
WordPress Trac
wp-trac at lists.automattic.com
Fri Feb 10 15:35:03 UTC 2012
#20011: Filtering posts for plugins that do not call posts to be filtered
--------------------------+-----------------------------
Reporter: jroakes | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 3.3.1
Severity: normal | Keywords: needs-patch
--------------------------+-----------------------------
In Query.php Line: 2745
Multisite Installation (3.3.1) While using Google XML Sitemaps Version
4.0beta4
Change:
{{{
// Always sanitize
foreach ( $this->posts as $i => $post ) {
$this->posts[$i] = sanitize_post( $post, 'raw' );
}
}}}
To:
{{{
// Always sanitize
if ($this->post_count > 0) {
foreach ( $this->posts as $i => $post ) {
$this->posts[$i] = sanitize_post( $post, 'raw' );
}
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20011>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list