Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/deprecated.php

    r13991 r15230  
    25142514    return '';
    25152515}
     2516
     2517/**
     2518 * Checks that the taxonomy name exists.
     2519 *
     2520 * @since 2.3.0
     2521 * @deprecated 3.0.0
     2522 * @deprecated Use taxonomy_exists()
     2523 * @see taxonomy_exists()
     2524 *
     2525 * @param string $taxonomy Name of taxonomy object
     2526 * @return bool Whether the taxonomy exists.
     2527 */
     2528function is_taxonomy( $taxonomy ) {
     2529    _deprecated_function( __FUNCTION__, '3.0', 'taxonomy_exists()' );
     2530    return taxonomy_exists( $taxonomy );
     2531}
     2532
     2533/**
     2534 * Check if Term exists.
     2535 *
     2536 * @since 2.3.0
     2537 * @deprecated 3.0.0
     2538 * @deprecated Use term_exists()
     2539 * @see term_exists()
     2540 *
     2541 * @param int|string $term The term to check
     2542 * @param string $taxonomy The taxonomy name to use
     2543 * @param int $parent ID of parent term under which to confine the exists search.
     2544 * @return mixed Get the term id or Term Object, if exists.
     2545 */
     2546function is_term( $term, $taxonomy = '', $parent = 0 ) {
     2547    _deprecated_function( __FUNCTION__, '3.0', 'term_exists()' );
     2548    return term_exists( $term, $taxonomy, $parent );
     2549}
Note: See TracChangeset for help on using the changeset viewer.