WordPress.org

Make WordPress Core

Changeset 4518


Ignore:
Timestamp:
11/23/06 16:06:16 (11 years ago)
Author:
matt
Message:

Typo in logic was causing extra page queries.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r4503 r4518  
    914914            $_page = & $GLOBALS['page']; 
    915915            wp_cache_add($_page->ID, $_page, 'pages'); 
    916         } elseif ( isset($_page) && $_page == $GLOBALS['post_cache'][$page] ) { 
     916        } elseif ( !isset($_page) && $_page == $GLOBALS['post_cache'][$page] ) { 
    917917            return get_post($page, $output); 
    918918        } elseif ( isset($_page) && $_page == wp_cache_get($page, 'pages') ) { 
Note: See TracChangeset for help on using the changeset viewer.