Deprecate is_term, is_taxonomy, is_post_type for *_exists(). Props nacin. fixes #13747

git-svn-id: http://svn.automattic.com/wordpress/trunk@15220 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2010-06-11 15:53:41 +00:00
parent 9eaf91db65
commit c614b6d0a2
9 changed files with 94 additions and 40 deletions

View File

@@ -279,7 +279,7 @@ function _wp_ajax_menu_quick_search( $request = array() ) {
}
if ( 'get-post-item' == $type ) {
if ( get_post_type_object( $object_type ) ) {
if ( post_type_exists( $object_type ) ) {
if ( isset( $request['ID'] ) ) {
$object_id = (int) $request['ID'];
if ( 'markup' == $response_format ) {
@@ -296,7 +296,7 @@ function _wp_ajax_menu_quick_search( $request = array() ) {
echo "\n";
}
}
} elseif ( is_taxonomy( $object_type ) ) {
} elseif ( taxonomy_exists( $object_type ) ) {
if ( isset( $request['ID'] ) ) {
$object_id = (int) $request['ID'];
if ( 'markup' == $response_format ) {