Changeset 9963 for trunk/wp-admin/admin-ajax.php
- Timestamp:
- 11/29/2008 01:03:03 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r9868 r9963 916 916 917 917 if ( ! current_user_can('manage_categories') ) 918 die( '<tr colspan="6"><td>' . __('Cheatin’ uh?') . '</td></tr>');918 die( __('Cheatin’ uh?') ); 919 919 920 920 if ( ! isset($_POST['tax_ID']) || ! ( $id = (int) $_POST['tax_ID'] ) ) 921 exit;921 die(-1); 922 922 923 923 switch ($_POST['tax_type']) { … … 929 929 if ( isset($_POST['parent']) && (int) $_POST['parent'] > 0 ) 930 930 $data['category_parent'] = $_POST['parent']; 931 932 $cat = get_category($id, ARRAY_A); 933 $data['category_description'] = $cat['category_description']; 931 934 932 935 $updated = wp_update_category($data);
Note: See TracChangeset
for help on using the changeset viewer.