Add some taxonomy validation. Rearrange funcs.

git-svn-id: http://svn.automattic.com/wordpress/trunk@5726 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2007-06-19 00:33:44 +00:00
parent e8dc080307
commit e2dc2a8dd3
5 changed files with 534 additions and 515 deletions

View File

@@ -440,7 +440,7 @@ function wp_get_post_categories( $post_id = 0, $args = array() ) {
$defaults = array('fields' => 'ids');
$args = wp_parse_args( $args, $defaults );
$cats = get_object_terms($post_id, 'category', $args);
$cats = wp_get_object_terms($post_id, 'category', $args);
return $cats;
}
@@ -450,7 +450,7 @@ function wp_get_post_tags( $post_id = 0, $args = array() ) {
$defaults = array('fields' => 'all');
$args = wp_parse_args( $args, $defaults );
$tags = get_object_terms($post_id, 'post_tag', $args);
$tags = wp_get_object_terms($post_id, 'post_tag', $args);
return $tags;
}