s/get_post_tags/wp_get_post_tags/ to match the rest of the API.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5231 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d76a895798
commit
246db4315f
|
@ -183,7 +183,7 @@ function get_the_tags( $before, $sep, $after ) {
|
||||||
if ( !$post )
|
if ( !$post )
|
||||||
return false; // in-the-loop function
|
return false; // in-the-loop function
|
||||||
|
|
||||||
$tags = get_post_tags( $post->ID );
|
$tags = wp_get_post_tags( $post->ID );
|
||||||
if ( empty( $tags ) )
|
if ( empty( $tags ) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
|
@ -458,7 +458,7 @@ function wp_get_post_categories($post_id = 0) {
|
||||||
return array_unique($cat_ids);
|
return array_unique($cat_ids);
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_post_tags( $post_id = 0 ) {
|
function wp_get_post_tags( $post_id = 0 ) {
|
||||||
global $tag_cache, $blog_id;
|
global $tag_cache, $blog_id;
|
||||||
|
|
||||||
$post_id = (int) $post_id;
|
$post_id = (int) $post_id;
|
||||||
|
|
Loading…
Reference in New Issue