Changeset 38698 for trunk/src/wp-admin/edit-tags.php
- Timestamp:
- 09/30/2016 10:39:32 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-tags.php
r38647 r38698 109 109 check_admin_referer( 'delete-tag_' . $tag_ID ); 110 110 111 if ( ! current_user_can( $tax->cap->delete_terms) ) {111 if ( ! current_user_can( 'delete_term', $tag_ID ) ) { 112 112 wp_die( 113 113 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . … … 169 169 check_admin_referer( 'update-tag_' . $tag_ID ); 170 170 171 if ( ! current_user_can( $tax->cap->edit_terms) ) {171 if ( ! current_user_can( 'edit_term', $tag_ID ) ) { 172 172 wp_die( 173 173 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . … … 314 314 315 315 require_once( ABSPATH . 'wp-admin/admin-header.php' ); 316 317 if ( ! current_user_can( $tax->cap->edit_terms ) ) {318 wp_die(319 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' .320 '<p>' . __( 'Sorry, you are not allowed to edit this item.' ) . '</p>',321 403322 );323 }324 316 325 317 /** Also used by the Edit Tag form */
Note: See TracChangeset
for help on using the changeset viewer.