Changeset 4022
- Timestamp:
- 07/20/06 01:30:37 (2 years ago)
- Files:
-
- trunk/wp-admin/admin-db.php (modified) (1 diff)
- trunk/wp-admin/categories.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/admin-db.php
r4020 r4022 84 84 85 85 extract($catarr); 86 87 if( trim( $cat_name ) == '' ) 88 return 0; 86 89 87 90 $cat_ID = (int) $cat_ID; trunk/wp-admin/categories.php
r4006 r4022 16 16 wp_die(__('Cheatin’ uh?')); 17 17 18 wp_insert_category($_POST); 19 20 wp_redirect('categories.php?message=1#addcat'); 18 if( wp_insert_category($_POST ) ) { 19 wp_redirect('categories.php?message=1#addcat'); 20 } else { 21 wp_redirect('categories.php?message=4#addcat'); 22 } 21 23 break; 22 24 … … 72 74 $messages[2] = __('Category deleted.'); 73 75 $messages[3] = __('Category updated.'); 76 $messages[4] = __('Category not added.'); 74 77 ?> 75 78
