Make WordPress Core

Ticket #21200: 21200.2.diff

File 21200.2.diff, 796 bytes (added by MikeHansenMe, 10 years ago)

adds _deprecated_function

  • src/wp-includes/category.php

     
    99 * Retrieves all category IDs.
    1010 *
    1111 * @since 2.0.0
     12 * @deprecated 4.0
     13 * @deprecated Use get_terms()
     14 * @see get_terms()
    1215 * @link http://codex.wordpress.org/Function_Reference/get_all_category_ids
    1316 *
    1417 * @return object List of all of the category IDs.
    1518 */
    1619function get_all_category_ids() {
     20        _deprecated_function( __FUNCTION__, '4.0', 'get_terms()' );
     21
    1722        if ( ! $cat_ids = wp_cache_get( 'all_category_ids', 'category' ) ) {
    1823                $cat_ids = get_terms( 'category', array('fields' => 'ids', 'get' => 'all') );
    1924                wp_cache_add( 'all_category_ids', $cat_ids, 'category' );