Changeset 4490
- Timestamp:
- 11/19/2006 01:12:36 AM (18 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-db.php
r4364 r4490 151 151 152 152 $cat_ID = (int) $catarr['cat_ID']; 153 154 if( $cat_ID == $catarr['category_parent'] ) 155 return false; 153 156 154 157 // First, get all of the original fields -
trunk/wp-admin/categories.php
r4480 r4490 63 63 wp_die(__('Cheatin’ uh?')); 64 64 65 wp_update_category($_POST); 65 if ( wp_update_category($_POST) ) 66 wp_redirect('categories.php?message=3'); 67 else 68 wp_redirect('categories.php?message=5'); 66 69 67 wp_redirect('categories.php?message=3');68 70 exit; 69 71 break; … … 78 80 $messages[3] = __('Category updated.'); 79 81 $messages[4] = __('Category not added.'); 82 $messages[5] = __('Category not updated.'); 80 83 ?> 81 84
Note: See TracChangeset
for help on using the changeset viewer.