mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
Validation in wp_dropdown_users and the non-hierarchical taxonomy meta box. props ocean90, see #13383.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14931 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8845d1f61f
commit
c490ca0680
@ -255,7 +255,7 @@ function post_tags_meta_box($post, $box) {
|
||||
<div class="jaxtag">
|
||||
<div class="nojs-tags hide-if-js">
|
||||
<p><?php echo $help_nojs; ?></p>
|
||||
<textarea name="<?php echo "tax_input[$tax_name]"; ?>" class="the-tags" id="tax-input[<?php echo $tax_name; ?>]" <?php echo $disabled; ?>><?php echo esc_attr(get_terms_to_edit( $post->ID, $tax_name )); ?></textarea></div>
|
||||
<textarea name="<?php echo "tax_input[$tax_name]"; ?>" rows="3" cols="20" class="the-tags" id="tax-input-<?php echo $tax_name; ?>" <?php echo $disabled; ?>><?php echo esc_attr(get_terms_to_edit( $post->ID, $tax_name )); ?></textarea></div>
|
||||
<?php if ( current_user_can($taxonomy->cap->assign_terms) ) : ?>
|
||||
<div class="ajaxtag hide-if-no-js">
|
||||
<label class="screen-reader-text" for="new-tag-<?php echo $tax_name; ?>"><?php echo $box['title']; ?></label>
|
||||
|
@ -614,7 +614,7 @@ function wp_dropdown_users( $args = '' ) {
|
||||
if ( $multi && ! $id )
|
||||
$id = '';
|
||||
else
|
||||
$id = $id ? " id='" . esc_attr( $id ) . "'" : "id='$name'";
|
||||
$id = $id ? " id='" . esc_attr( $id ) . "'" : " id='$name'";
|
||||
|
||||
$output = "<select name='{$name}'{$id} class='$class'>\n";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user