X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/03f2fa83c13c1b532284205fa7efcab9b8b2c41f..4ea0dca21bda49aab5ccb91ec12bb4ef5924ed3e:/wp-includes/class-wp-post.php diff --git a/wp-includes/class-wp-post.php b/wp-includes/class-wp-post.php index 5904e588..edaf149a 100644 --- a/wp-includes/class-wp-post.php +++ b/wp-includes/class-wp-post.php @@ -211,8 +211,9 @@ final class WP_Post { global $wpdb; $post_id = (int) $post_id; - if ( ! $post_id ) + if ( ! $post_id ) { return false; + } $_post = wp_cache_get( $post_id, 'posts' ); @@ -252,7 +253,7 @@ final class WP_Post { return true; if ( 'page_template' == $key ) - return ( 'page' == $this->post_type ); + return true; if ( 'post_category' == $key ) return true;