Changeset 30356 for trunk/src/wp-admin/edit-tags.php
- Timestamp:
- 11/16/2014 06:15:29 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-tags.php
r29821 r30356 19 19 20 20 if ( ! current_user_can( $tax->cap->manage_terms ) ) 21 wp_die( __( 'Cheatin’ uh?' ) );21 wp_die( __( 'Cheatin’ uh?' ), 403 ); 22 22 23 23 $wp_list_table = _get_list_table('WP_Terms_List_Table'); … … 48 48 49 49 if ( !current_user_can( $tax->cap->edit_terms ) ) 50 wp_die( __( 'Cheatin’ uh?' ) );50 wp_die( __( 'Cheatin’ uh?' ), 403 ); 51 51 52 52 $ret = wp_insert_term( $_POST['tag-name'], $taxonomy, $_POST ); … … 84 84 85 85 if ( !current_user_can( $tax->cap->delete_terms ) ) 86 wp_die( __( 'Cheatin’ uh?' ) );86 wp_die( __( 'Cheatin’ uh?' ), 403 ); 87 87 88 88 wp_delete_term( $tag_ID, $taxonomy ); … … 96 96 97 97 if ( !current_user_can( $tax->cap->delete_terms ) ) 98 wp_die( __( 'Cheatin’ uh?' ) );98 wp_die( __( 'Cheatin’ uh?' ), 403 ); 99 99 100 100 $tags = (array) $_REQUEST['delete_tags']; … … 134 134 135 135 if ( !current_user_can( $tax->cap->edit_terms ) ) 136 wp_die( __( 'Cheatin’ uh?' ) );136 wp_die( __( 'Cheatin’ uh?' ), 403 ); 137 137 138 138 $tag = get_term( $tag_ID, $taxonomy );
Note: See TracChangeset
for help on using the changeset viewer.