WordPress.org

Make WordPress Core

Ticket #14343: 14343.diff

File 14343.diff, 462 bytes (added by duck_, 5 years ago)
  • wp-admin/edit-tags.php

     
    1919 
    2020$tax = get_taxonomy($taxonomy); 
    2121 
     22if ( ! current_user_can($tax->cap->manage_terms) ) 
     23        wp_die(__('Cheatin’ uh?')); 
     24 
    2225$title = $tax->labels->name; 
    2326 
    2427if ( empty($post_type) || !in_array( $post_type, get_post_types( array('public' => true) ) ) )