WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r15263 r15442  
    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;
     
    121124    require_once ('admin-header.php');
    122125    $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.') );
    123129
    124130    $tag = get_term($tag_ID, $taxonomy, OBJECT, 'edit');
     
    383389<input type="hidden" name="screen" value="<?php echo esc_attr($current_screen->id); ?>" />
    384390<input type="hidden" name="taxonomy" value="<?php echo esc_attr($taxonomy); ?>" />
     391<input type="hidden" name="post_type" value="<?php echo esc_attr($post_type); ?>" />
    385392<?php wp_nonce_field('add-tag'); ?>
    386393
Note: See TracChangeset for help on using the changeset viewer.