Make WordPress Core

Changeset 38579


Ignore:
Timestamp:
09/08/2016 10:57:22 PM (10 years ago)
Author:
johnbillion
Message:

Taxonomy: Revert accidental changes introduced in [38578].

See #18302

File:
1 edited

Legend:

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

    r38578 r38579  
    931931
    932932        $tax = get_taxonomy( $term->taxonomy );
    933         if ( ! $tax || ! current_user_can( 'edit_term', $term->term_id ) ) {
     933        if ( ! $tax || ! current_user_can( $tax->cap->edit_terms ) ) {
    934934                return;
    935935        }
     
    985985
    986986        $tax = get_taxonomy( $term->taxonomy );
    987         if ( ! current_user_can( 'edit_term', $term->term_id ) ) {
     987        if ( ! current_user_can( $tax->cap->edit_terms ) ) {
    988988                return;
    989989        }
Note: See TracChangeset for help on using the changeset viewer.