Changeset 12515 for trunk/wp-includes/category.php
- Timestamp:
- 12/23/2009 03:31:02 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/category.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category.php
r11031 r12515 16 16 function get_all_category_ids() { 17 17 if ( ! $cat_ids = wp_cache_get( 'all_category_ids', 'category' ) ) { 18 $cat_ids = get_terms( 'category', 'fields=ids&get=all');18 $cat_ids = get_terms( 'category', array('fields' => 'ids', 'get' => 'all') ); 19 19 wp_cache_add( 'all_category_ids', $cat_ids, 'category' ); 20 20 } … … 114 114 $full_path .= ( $pathdir != '' ? '/' : '' ) . sanitize_title( $pathdir ); 115 115 116 $categories = get_terms( 'category', "get=all&slug=$leaf_path");116 $categories = get_terms( 'category', array('get' => 'all', 'slug' => $leaf_path) ); 117 117 118 118 if ( empty( $categories ) )
Note: See TracChangeset
for help on using the changeset viewer.