|
25 | 25 |
|
26 | 26 | if ( ! current_user_can( $tax->cap->manage_terms ) ) { |
27 | 27 | wp_die( |
28 | | - '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 28 | + '<h1>' . __( 'You don’t have permission to do this.' ) . '</h1>' . |
29 | 29 | '<p>' . __( 'Sorry, you are not allowed to manage terms in this taxonomy.' ) . '</p>', |
30 | 30 | 403 |
31 | 31 | ); |
|
81 | 81 |
|
82 | 82 | if ( ! current_user_can( $tax->cap->edit_terms ) ) { |
83 | 83 | wp_die( |
84 | | - '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 84 | + '<h1>' . __( 'You don’t have permission to do this.' ) . '</h1>' . |
85 | 85 | '<p>' . __( 'Sorry, you are not allowed to create terms in this taxonomy.' ) . '</p>', |
86 | 86 | 403 |
87 | 87 | ); |
|
111 | 111 |
|
112 | 112 | if ( ! current_user_can( 'delete_term', $tag_ID ) ) { |
113 | 113 | wp_die( |
114 | | - '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 114 | + '<h1>' . __( 'You don’t have permission to do this.' ) . '</h1>' . |
115 | 115 | '<p>' . __( 'Sorry, you are not allowed to delete this item.' ) . '</p>', |
116 | 116 | 403 |
117 | 117 | ); |
|
131 | 131 |
|
132 | 132 | if ( ! current_user_can( $tax->cap->delete_terms ) ) { |
133 | 133 | wp_die( |
134 | | - '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 134 | + '<h1>' . __( 'You don’t have permission to do this.' ) . '</h1>' . |
135 | 135 | '<p>' . __( 'Sorry, you are not allowed to delete these items.' ) . '</p>', |
136 | 136 | 403 |
137 | 137 | ); |
|
167 | 167 |
|
168 | 168 | if ( ! current_user_can( 'edit_term', $tag_ID ) ) { |
169 | 169 | wp_die( |
170 | | - '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 170 | + '<h1>' . __( 'You don’t have permission to do this.' ) . '</h1>' . |
171 | 171 | '<p>' . __( 'Sorry, you are not allowed to edit this item.' ) . '</p>', |
172 | 172 | 403 |
173 | 173 | ); |
|
0 commit comments