Make WordPress Core

Changeset 14931


Ignore:
Timestamp:
05/26/2010 04:01:14 AM (14 years ago)
Author:
nacin
Message:

Validation in wp_dropdown_users and the non-hierarchical taxonomy meta box. props ocean90, see #13383.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/meta-boxes.php

    r14904 r14931  
    256256    <div class="nojs-tags hide-if-js">
    257257    <p><?php echo $help_nojs; ?></p>
    258     <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>
     258    <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>
    259259    <?php if ( current_user_can($taxonomy->cap->assign_terms) ) : ?>
    260260    <div class="ajaxtag hide-if-no-js">
  • trunk/wp-includes/user.php

    r14779 r14931  
    615615            $id = '';
    616616        else
    617             $id = $id ? " id='" . esc_attr( $id ) . "'" : "id='$name'";
     617            $id = $id ? " id='" . esc_attr( $id ) . "'" : " id='$name'";
    618618
    619619        $output = "<select name='{$name}'{$id} class='$class'>\n";
Note: See TracChangeset for help on using the changeset viewer.