Changeset 18846 for trunk/wp-includes/query.php
- Timestamp:
- 09/30/2011 07:06:18 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r18838 r18846 2746 2746 $this->post_count = count($this->posts); 2747 2747 2748 // Sanitize before caching so it'll only get done once2749 for ( $i = 0; $i < $this->post_count; $i++) {2750 $this->posts[$i] = sanitize_post( $this->posts[$i], 'raw');2748 // Always sanitize 2749 foreach ( $this->posts as $i => $post ) { 2750 $this->posts[$i] = sanitize_post( $post, 'raw' ); 2751 2751 } 2752 2752
Note: See TracChangeset
for help on using the changeset viewer.