Ticket #21200: 21200.2.diff
File 21200.2.diff, 796 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/category.php
9 9 * Retrieves all category IDs. 10 10 * 11 11 * @since 2.0.0 12 * @deprecated 4.0 13 * @deprecated Use get_terms() 14 * @see get_terms() 12 15 * @link http://codex.wordpress.org/Function_Reference/get_all_category_ids 13 16 * 14 17 * @return object List of all of the category IDs. 15 18 */ 16 19 function get_all_category_ids() { 20 _deprecated_function( __FUNCTION__, '4.0', 'get_terms()' ); 21 17 22 if ( ! $cat_ids = wp_cache_get( 'all_category_ids', 'category' ) ) { 18 23 $cat_ids = get_terms( 'category', array('fields' => 'ids', 'get' => 'all') ); 19 24 wp_cache_add( 'all_category_ids', $cat_ids, 'category' );