Changeset 38381
- Timestamp:
- 08/26/2016 07:08:23 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-comment.php
r36332 r38381 192 192 global $wpdb; 193 193 194 if ( ! is_numeric( $id ) || $id != floor( $id ) || ! $id ) { 195 return false; 196 } 197 194 198 $comment_id = (int) $id; 195 if ( ! $comment_id ) {196 return false;197 }198 199 199 200 $_comment = wp_cache_get( $comment_id, 'comment' ); -
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' ); -
trunk/src/wp-includes/class-wp-term.php
r38312 r38381 126 126 global $wpdb; 127 127 128 if ( ! is_numeric( $term_id ) || $term_id != floor( $term_id ) || ! $term_id ) { 129 return false; 130 } 131 128 132 $term_id = (int) $term_id; 129 if ( ! $term_id ) {130 return false;131 }132 133 133 134 $_term = wp_cache_get( $term_id, 'terms' );
Note: See TracChangeset
for help on using the changeset viewer.