|
18 | 18 | wp_die( __( 'Invalid taxonomy' ) ); |
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'); |
24 | 24 | $pagenum = $wp_list_table->get_pagenum(); |
|
47 | 47 | check_admin_referer( 'add-tag', '_wpnonce_add-tag' ); |
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 ); |
53 | 53 | $location = 'edit-tags.php?taxonomy=' . $taxonomy; |
|
83 | 83 | check_admin_referer( 'delete-tag_' . $tag_ID ); |
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 ); |
89 | 89 |
|
|
95 | 95 | check_admin_referer( 'bulk-tags' ); |
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']; |
101 | 101 | foreach ( $tags as $tag_ID ) { |
|
133 | 133 | check_admin_referer( 'update-tag_' . $tag_ID ); |
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 ); |
139 | 139 | if ( ! $tag ) |
|
0 commit comments