Changeset 16992 for trunk/wp-admin/includes/class-wp-terms-list-table.php
- Timestamp:
- 12/16/2010 09:18:28 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-terms-list-table.php
r16900 r16992 33 33 } 34 34 35 function check_permissions( $type = '') {35 function ajax_user_can() { 36 36 global $tax; 37 37 38 $cap = 'edit' == $type ? $tax->cap->edit_terms : $tax->cap->manage_terms; 39 if ( !current_user_can( $cap ) ) 40 wp_die( __( 'Cheatin’ uh?' ) ); 38 return current_user_can( $tax->cap->manage_terms ); 41 39 } 42 40
Note: See TracChangeset
for help on using the changeset viewer.