Changeset 58175
- Timestamp:
- 05/20/2024 01:42:12 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r58174 r58175 1220 1220 */ 1221 1221 function get_post_status( $post = null ) { 1222 if ( $post instanceof WP_Post && isset( $post->filter ) && 'sample' === $post->filter ) { 1223 // Skip normalization 1224 } else { 1222 // Normalize the post object if necessary, skip normalization if called from get_sample_permalink(). 1223 if ( ! $post instanceof WP_Post || ! isset( $post->filter ) || 'sample' !== $post->filter ) { 1225 1224 $post = get_post( $post ); 1226 1225 }
Note: See TracChangeset
for help on using the changeset viewer.