Make WordPress Core


Ignore:
Timestamp:
02/18/2010 01:52:37 AM (16 years ago)
Author:
wpmuguru
Message:

introduce post & comment classes, props skeltoac, See #12267

File:
1 edited

Legend:

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

    r13172 r13187  
    23022302        if ( !$q['suppress_filters'] )
    23032303            $this->posts = apply_filters('posts_results', $this->posts);
     2304
     2305        // Turn each row into a classed object, e.g. wp_post, wp_comment.
     2306        if ( is_array($this->posts) )
     2307            $this->posts = array_map(array('wp_row', 'get'), $this->posts);
    23042308
    23052309        if ( !empty($this->posts) && $this->is_comment_feed && $this->is_singular ) {
Note: See TracChangeset for help on using the changeset viewer.