mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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:
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user