Make WordPress Core


Ignore:
Timestamp:
10/19/2011 05:08:57 PM (12 years ago)
Author:
markjaquith
Message:

Use the correct capability check for taxonomies in Quick Edit. props lancewillett. fixes #18551

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-posts-list-table.php

    r18818 r19010  
    897897
    898898    <?php foreach ( $flat_taxonomies as $taxonomy ) : ?>
    899 
     899        <?php if ( current_user_can( $taxonomy->cap->assign_terms ) ) : ?>
    900900            <label class="inline-edit-tags">
    901901                <span class="title"><?php echo esc_html( $taxonomy->labels->name ) ?></span>
    902902                <textarea cols="22" rows="1" name="tax_input[<?php echo esc_attr( $taxonomy->name )?>]" class="tax_input_<?php echo esc_attr( $taxonomy->name )?>"></textarea>
    903903            </label>
     904        <?php endif; ?>
    904905
    905906    <?php endforeach; //$flat_taxonomies as $taxonomy ?>
Note: See TracChangeset for help on using the changeset viewer.