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