~robotparade/wordpress/stable

« back to all changes in this revision

Viewing changes to wp-includes/deprecated.php

  • Committer: Jeff Waugh
  • Date: 2010-06-11 21:00:40 UTC
  • Revision ID: jdub@bethesignal.org-20100611210040-9narx3kdlayc8x39
WordPress 3.0 RC3

Show diffs side-by-side

added added

removed removed

Lines of Context:
2513
2513
        _deprecated_function( __FUNCTION__, '3.0' );
2514
2514
        return '';
2515
2515
}
 
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
 */
 
2528
function 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
 */
 
2546
function is_term( $term, $taxonomy = '', $parent = 0 ) {
 
2547
        _deprecated_function( __FUNCTION__, '3.0', 'term_exists()' );
 
2548
        return term_exists( $term, $taxonomy, $parent );
 
2549
}