Changeset 55190
- Timestamp:
- 02/02/2023 01:57:48 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/taxonomy.php
r53516 r55190 187 187 */ 188 188 function wp_update_category( $catarr ) { 189 $cat_ ID= (int) $catarr['cat_ID'];190 191 if ( isset( $catarr['category_parent'] ) && ( $cat_ ID== $catarr['category_parent'] ) ) {189 $cat_id = (int) $catarr['cat_ID']; 190 191 if ( isset( $catarr['category_parent'] ) && ( $cat_id == $catarr['category_parent'] ) ) { 192 192 return false; 193 193 } 194 194 195 195 // First, get all of the original fields. 196 $category = get_term( $cat_ ID, 'category', ARRAY_A );196 $category = get_term( $cat_id, 'category', ARRAY_A ); 197 197 _make_cat_compat( $category ); 198 198
Note: See TracChangeset
for help on using the changeset viewer.