Changeset 25662 for trunk/src/wp-admin/includes/taxonomy.php
- Timestamp:
- 10/02/2013 07:58:50 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/taxonomy.php
r23563 r25662 35 35 */ 36 36 function get_category_to_edit( $id ) { 37 $category = get_category( $id, OBJECT, 'edit' ); 37 $category = get_term( $id, 'category', OBJECT, 'edit' ); 38 _make_cat_compat( $category ); 38 39 return $category; 39 40 } … … 156 157 157 158 // First, get all of the original fields 158 $category = get_category($cat_ID, ARRAY_A); 159 $category = get_term( $cat_ID, 'category', ARRAY_A ); 160 _make_cat_compat( $category ); 159 161 160 162 // Escape data pulled from DB.
Note: See TracChangeset
for help on using the changeset viewer.