Ticket #15673: 15673.diff
File 15673.diff, 704 bytes (added by , 14 years ago) |
---|
-
wp-admin/includes/class-wp-terms-list-table.php
32 32 ) ); 33 33 } 34 34 35 function check_permissions( $type = ' manage' ) {35 function check_permissions( $type = '' ) { 36 36 global $tax; 37 37 38 $cap = 'manage' == $type ? $tax->cap->manage_terms : $tax->cap->edit_terms; 39 40 if ( !current_user_can( $tax->cap->manage_terms ) ) 38 $cap = 'edit' == $type ? $tax->cap->edit_terms : $tax->cap->manage_terms; 39 if ( !current_user_can( $cap ) ) 41 40 wp_die( __( 'Cheatin’ uh?' ) ); 42 41 } 43 42