Make WordPress Core


Ignore:
Timestamp:
06/19/2007 12:33:44 AM (18 years ago)
Author:
ryan
Message:

Add some taxonomy validation. Rearrange funcs.

File:
1 edited

Legend:

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

    r5708 r5726  
    441441    $args = wp_parse_args( $args, $defaults );
    442442
    443     $cats = get_object_terms($post_id, 'category', $args);
     443    $cats = wp_get_object_terms($post_id, 'category', $args);
    444444    return $cats;
    445445}
     
    451451    $args = wp_parse_args( $args, $defaults );
    452452
    453     $tags = get_object_terms($post_id, 'post_tag', $args);
     453    $tags = wp_get_object_terms($post_id, 'post_tag', $args);
    454454
    455455    return $tags;
Note: See TracChangeset for help on using the changeset viewer.