Make WordPress Core

Changeset 2225


Ignore:
Timestamp:
02/05/2005 08:45:50 PM (21 years ago)
Author:
rboren
Message:

Respect the mode. Props: ringmaster. http://mosquito.wordpress.org/view.php?id=804

File:
1 edited

Legend:

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

    r2199 r2225  
    6565   
    6666    // Set categories
    67     $result['post_category'] = wp_get_post_cats('',$postid);
     67    if($mode == OBJECT) {
     68        $result->post_category = wp_get_post_cats('',$postid);
     69    }
     70    else {
     71        $result['post_category'] = wp_get_post_cats('',$postid);
     72    }
    6873
    6974    return $result;
Note: See TracChangeset for help on using the changeset viewer.