Use the correct capability check for taxonomies in Quick Edit. props lancewillett. fixes #18551
git-svn-id: https://develop.svn.wordpress.org/trunk@19010 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9e0ccd9fdf
commit
f32a070480
@ -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
Block a user