WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/11/2010 03:53:41 PM (11 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/nav-menu.php

    r15219 r15220  
    280280
    281281    if ( 'get-post-item' == $type ) {
    282         if ( get_post_type_object( $object_type ) ) {
     282        if ( post_type_exists( $object_type ) ) {
    283283            if ( isset( $request['ID'] ) ) {
    284284                $object_id = (int) $request['ID'];
     
    297297                }
    298298            }
    299         } elseif ( is_taxonomy( $object_type ) ) {
     299        } elseif ( taxonomy_exists( $object_type ) ) {
    300300            if ( isset( $request['ID'] ) ) {
    301301                $object_id = (int) $request['ID'];
Note: See TracChangeset for help on using the changeset viewer.