Typo in logic was causing extra page queries.

git-svn-id: http://svn.automattic.com/wordpress/trunk@4518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2006-11-23 16:06:16 +00:00
parent 624c94b57e
commit 64b8121680
1 changed files with 1 additions and 1 deletions

View File

@ -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.