Typo in logic was causing extra page queries.
git-svn-id: https://develop.svn.wordpress.org/trunk@4518 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
63d022fa1a
commit
fe87cdac0b
@ -913,7 +913,7 @@ function &get_page(&$page, $output = OBJECT) {
|
||||
if ( isset($GLOBALS['page']->ID) && ($page == $GLOBALS['page']->ID) ) {
|
||||
$_page = & $GLOBALS['page'];
|
||||
wp_cache_add($_page->ID, $_page, 'pages');
|
||||
} elseif ( isset($_page) && $_page == $GLOBALS['post_cache'][$page] ) {
|
||||
} elseif ( !isset($_page) && $_page == $GLOBALS['post_cache'][$page] ) {
|
||||
return get_post($page, $output);
|
||||
} elseif ( isset($_page) && $_page == wp_cache_get($page, 'pages') ) {
|
||||
// Got it.
|
||||
|
Loading…
Reference in New Issue
Block a user