Changeset 53042
- Timestamp:
- 04/01/2022 03:16:33 AM (2 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-post.php
r49544 r53042 248 248 $_post = sanitize_post( $_post, 'raw' ); 249 249 wp_cache_add( $_post->ID, $_post, 'posts' ); 250 } elseif ( empty( $_post->filter ) ) {250 } elseif ( empty( $_post->filter ) || 'raw' !== $_post->filter ) { 251 251 $_post = sanitize_post( $_post, 'raw' ); 252 252 } -
trunk/src/wp-includes/post.php
r52978 r53042 7375 7375 $data = array(); 7376 7376 foreach ( $posts as $post ) { 7377 if ( empty( $post->filter ) || 'raw' !== $post->filter ) { 7378 $post = sanitize_post( $post, 'raw' ); 7379 } 7377 7380 $data[ $post->ID ] = $post; 7378 7381 }
Note: See TracChangeset
for help on using the changeset viewer.