Use the correct capability check for taxonomies in Quick Edit. props lancewillett. fixes #18551
git-svn-id: http://svn.automattic.com/wordpress/trunk@19010 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
52829ad92f
commit
aa64ec5d1d
|
@ -896,11 +896,12 @@ class WP_Posts_List_Table extends WP_List_Table {
|
|||
<?php if ( count( $flat_taxonomies ) && !$bulk ) : ?>
|
||||
|
||||
<?php foreach ( $flat_taxonomies as $taxonomy ) : ?>
|
||||
|
||||
<?php if ( current_user_can( $taxonomy->cap->assign_terms ) ) : ?>
|
||||
<label class="inline-edit-tags">
|
||||
<span class="title"><?php echo esc_html( $taxonomy->labels->name ) ?></span>
|
||||
<textarea cols="22" rows="1" name="tax_input[<?php echo esc_attr( $taxonomy->name )?>]" class="tax_input_<?php echo esc_attr( $taxonomy->name )?>"></textarea>
|
||||
</label>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endforeach; //$flat_taxonomies as $taxonomy ?>
|
||||
|
||||
|
|
Loading…
Reference in New Issue