Ticket #37738: 37738.php.patch
File 37738.php.patch, 416 bytes (added by , 8 years ago) |
---|
-
class-wp-post.php
209 209 */ 210 210 public static function get_instance( $post_id ) { 211 211 global $wpdb; 212 212 if(!(is_numeric($post_id) or is_bool($post_id))){ 213 return false; 214 } 213 215 $post_id = (int) $post_id; 214 216 if ( ! $post_id ) 215 217 return false;