Make WordPress Core

Changeset 2485


Ignore:
Timestamp:
03/29/2005 03:33:56 AM (22 years ago)
Author:
ryan
Message:

get_post(): Don't use for cache lookup when a post id is passed.

File:
1 edited

Legend:

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

    r2481 r2485  
    554554                $post = & $post_cache[$post->ID];
    555555        } else {
    556                 if ( isset($GLOBALS['post']) && ($post == $GLOBALS['post']->ID) )
    557                         $post = & $GLOBALS['post'];
    558                 elseif (isset($post_cache[$post]))
     556                if (isset($post_cache[$post]))
    559557                        $post = & $post_cache[$post];
    560558                else {
Note: See TracChangeset for help on using the changeset viewer.