Don't use deprecated functions. props filosofo, fixes #13854.

git-svn-id: https://develop.svn.wordpress.org/trunk@15229 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2010-06-11 17:49:35 +00:00
parent 3e360da417
commit ec9f6d34cb
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -2543,7 +2543,7 @@ function is_post_type( $post_type ) {
*/
function is_taxonomy( $taxonomy ) {
_deprecated_function( __FUNCTION__, '3.0', 'taxonomy_exists()' );
return taxonomy_exists( $post_type );
return taxonomy_exists( $taxonomy );
}
/**
@@ -2562,4 +2562,4 @@ function is_taxonomy( $taxonomy ) {
function is_term( $term, $taxonomy = '', $parent = 0 ) {
_deprecated_function( __FUNCTION__, '3.0', 'term_exists()' );
return term_exists( $term, $taxonomy, $parent );
}
}