Make WordPress Core

Changeset 15441


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

Add cap check. see #14343

File:
1 edited

Legend:

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

    r15439 r15441  
    124124    require_once ('admin-header.php');
    125125    $tag_ID = (int) $_GET['tag_ID'];
     126
     127    if ( !current_user_can($tax->cap->edit_terms) )
     128        wp_die( __('You are not allowed to edit this item.') );
    126129
    127130    $tag = get_term($tag_ID, $taxonomy, OBJECT, 'edit');
Note: See TracChangeset for help on using the changeset viewer.