Make WordPress Core


Ignore:
Timestamp:
05/13/2010 04:10:17 AM (16 years ago)
Author:
nacin
Message:

Move taxonomy object properties for capabilities into a cap object. Capabilities can be specified via capabilities? (an array keyed by the generic cap name) for register_taxonomy. fixes #13358.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/link-template.php

    r14585 r14593  
    647647    global $post_type;
    648648    $tax = get_taxonomy($taxonomy);
    649     if ( !current_user_can($tax->edit_cap) )
     649    if ( !current_user_can($tax->cap->edit_terms) )
    650650        return;
    651651
     
    669669function edit_tag_link( $link = '', $before = '', $after = '', $tag = null ) {
    670670    $tax = get_taxonomy('post_tag');
    671     if ( !current_user_can($tax->edit_cap) )
     671    if ( !current_user_can($tax->cap->edit_terms) )
    672672        return;
    673673
Note: See TracChangeset for help on using the changeset viewer.