Changeset 39992 for trunk/src/wp-includes/class-wp-post.php
- Timestamp:
- 01/26/2017 04:52:51 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-post.php
r38951 r39992 211 211 global $wpdb; 212 212 213 if ( ! is_numeric( $post_id ) || $post_id != floor( $post_id ) || ! $post_id ) { 213 $post_id = (int) $post_id; 214 if ( ! $post_id ) { 214 215 return false; 215 216 } 216 217 $post_id = (int) $post_id;218 217 219 218 $_post = wp_cache_get( $post_id, 'posts' );
Note: See TracChangeset
for help on using the changeset viewer.