global $wpdb;
$post_id = (int) $post_id;
- if ( ! $post_id )
+ if ( ! $post_id ) {
return false;
+ }
$_post = wp_cache_get( $post_id, 'posts' );
return true;
if ( 'page_template' == $key )
- return ( 'page' == $this->post_type );
+ return true;
if ( 'post_category' == $key )
return true;