Make WordPress Core

Changeset 3290


Ignore:
Timestamp:
12/11/2005 07:14:29 PM (19 years ago)
Author:
ryan
Message:

Update get_queried_object() to use get_userdata() when retrieving authors. fixes #2044

File:
1 edited

Legend:

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

    r3252 r3290  
    735735            $this->queried_object_id = $this->post->ID;
    736736        } else if ($this->is_author) {
    737             global $cache_userdata;
    738             if (isset($cache_userdata[$this->get('author')])) {
    739                 $this->queried_object = $cache_userdata[$this->get('author')];
    740                 $this->queried_object_id = $this->get('author');
    741             }
     737            $author_id = $this->get('author');
     738            $author = get_userdata($author_id);
     739            $this->queried_object = $author;
     740            $this->queried_object_id = $author_id;
    742741        }
    743742
Note: See TracChangeset for help on using the changeset viewer.