diff --git a/src/wp-includes/deprecated.php b/src/wp-includes/deprecated.php
index 98da670cc1..9230525b3c 100644
|
a
|
b
|
function get_category_children( $id, $before = '/', $after = '', $visited = arra |
| 1286 | 1286 | function get_all_category_ids() { |
| 1287 | 1287 | _deprecated_function( __FUNCTION__, '4.0.0', 'get_terms()' ); |
| 1288 | 1288 | |
| 1289 | | if ( ! $cat_ids = wp_cache_get( 'all_category_ids', 'category' ) ) { |
| 1290 | | $cat_ids = get_terms( |
| 1291 | | array( |
| 1292 | | 'taxonomy' => 'category', |
| 1293 | | 'fields' => 'ids', |
| 1294 | | 'get' => 'all', |
| 1295 | | ) |
| 1296 | | ); |
| 1297 | | wp_cache_add( 'all_category_ids', $cat_ids, 'category' ); |
| 1298 | | } |
| | 1289 | $cat_ids = get_terms( |
| | 1290 | array( |
| | 1291 | 'taxonomy' => 'category', |
| | 1292 | 'fields' => 'ids', |
| | 1293 | 'get' => 'all', |
| | 1294 | ) |
| | 1295 | ); |
| 1299 | 1296 | |
| 1300 | 1297 | return $cat_ids; |
| 1301 | 1298 | } |