WordPress.org

Make WordPress Core

Changeset 15440


Ignore:
Timestamp:
07/18/10 13:54:15 (5 years ago)
Author:
ryan
Message:

Add cap check. Props duck_. see #14343 for 3.0.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/wp-admin/edit-tags.php

    r15337 r15440  
    1919 
    2020$tax = get_taxonomy($taxonomy); 
     21 
     22if ( ! current_user_can($tax->cap->manage_terms) ) 
     23    wp_die(__('Cheatin’ uh?')); 
    2124 
    2225$title = $tax->labels->name; 
Note: See TracChangeset for help on using the changeset viewer.