WordPress.org

Make WordPress Core

Changeset 15442


Ignore:
Timestamp:
07/18/10 14:00:15 (4 years ago)
Author:
ryan
Message:

Add cap check. see #14343

File:
1 edited

Legend:

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

    r15440 r15442  
    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.