mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-13 07:10:00 +01:00
is_singular should be false for the posts page. Props mdawaffe. fixes #3351
git-svn-id: http://svn.automattic.com/wordpress/trunk@4463 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8ea4ca38ce
commit
1d8d18022e
@ -695,6 +695,7 @@ class WP_Query {
|
||||
$reqpage = 0;
|
||||
|
||||
if ( ('page' == get_option('show_on_front') ) && ( $reqpage == get_option('page_for_posts') ) ) {
|
||||
$this->is_singular = false;
|
||||
$this->is_page = false;
|
||||
$this->is_home = true;
|
||||
$this->is_posts_page = true;
|
||||
@ -734,6 +735,7 @@ class WP_Query {
|
||||
if (($q['page_id'] != '') && (intval($q['page_id']) != 0)) {
|
||||
$q['page_id'] = intval($q['page_id']);
|
||||
if ( ('page' == get_option('show_on_front') ) && ( $q['page_id'] == get_option('page_for_posts') ) ) {
|
||||
$this->is_singular = false;
|
||||
$this->is_page = false;
|
||||
$this->is_home = true;
|
||||
$this->is_posts_page = true;
|
||||
|
Loading…
Reference in New Issue
Block a user