mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 19:24:34 +00:00
Accessible Tags autocomplete:
- Replace suggest.js with UI Autocomplete. - Use the same settings like in the editor link toolbar. - Abstract it and add in a new file, tags-suggest.js. Then make it a dependency for the Tags postbox(es) and Quick and Bulk Edit. - Add `data-wp-taxonomy` on all input elements to improve handling in the UI for custom taxonomies. Props afercia, azaozz. See #33902. git-svn-id: https://develop.svn.wordpress.org/trunk@38797 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1550,10 +1550,13 @@ 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 ) ) : ?>
|
||||
<?php if ( current_user_can( $taxonomy->cap->assign_terms ) ) :
|
||||
$taxonomy_name = esc_attr( $taxonomy->name );
|
||||
|
||||
?>
|
||||
<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>
|
||||
<textarea data-wp-taxonomy="<?php echo $taxonomy_name; ?>" cols="22" rows="1" name="tax_input[<?php echo $taxonomy_name; ?>]" class="tax_input_<?php echo $taxonomy_name; ?>"></textarea>
|
||||
</label>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user