WordPress.org

Make WordPress Core

Changeset 15439


Ignore:
Timestamp:
07/18/2010 01:53:58 PM (8 years ago)
Author:
ryan
Message:

Add cap check. Props duck_. see #14343

File:
1 edited

Legend:

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

    r15336 r15439  
    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.