WordPress.org

Make WordPress Core

Changeset 11152


Ignore:
Timestamp:
05/01/2009 09:52:34 PM (9 years ago)
Author:
ryan
Message:

Add labels to text inputs. see #9445

Location:
trunk/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r11150 r11152  
    270270 */
    271271function post_tags_meta_box($post, $box) {
    272     $tax_name = substr($box['id'], 8);
     272    $tax_name = attr(substr($box['id'], 8));
    273273    $taxonomy = get_taxonomy($tax_name);
    274274    $helps = isset($taxonomy->helps) ? attr($taxonomy->helps) : __('Separate tags with commas.');
     
    276276<div class="tagsdiv" id="<?php echo $tax_name; ?>">
    277277    <p class="jaxtag">
    278         <label class="hidden" for="newtag"><?php _e( $box['title'] ); ?></label>
     278        <label class="hidden" for="new-tag-<?php echo $tax_name; ?>"><?php echo $box['title']; ?></label>
    279279        <input type="hidden" name="<?php echo "tax_input[$tax_name]"; ?>" class="the-tags" id="tax-input[<?php echo $tax_name; ?>]" value="<?php echo attr(get_terms_to_edit( $post->ID, $tax_name )); ?>" />
    280280
    281281    <span class="ajaxtag">
    282         <input type="text" name="newtag[<?php echo $tax_name; ?>]" class="newtag form-input-tip" size="16" autocomplete="off" value="<?php _ea('Add new tag'); ?>" />
     282        <input type="text" id="new-tag-<?php echo $tax_name; ?>" name="newtag[<?php echo $tax_name; ?>]" class="newtag form-input-tip" size="16" autocomplete="off" value="<?php _ea('Add new tag'); ?>" />
    283283        <input type="button" class="button tagadd" value="<?php _ea('Add'); ?>" tabindex="3" />
    284284    </span></p>
  • trunk/wp-admin/includes/media.php

    r11150 r11152  
    13511351<?php do_action('pre-html-upload-ui'); ?>
    13521352    <p id="async-upload-wrap">
    1353     <input type="file" name="async-upload" id="async-upload" /> <input type="submit" class="button" name="html-upload" value="<?php echo attr(__('Upload')); ?>" /> <a href="#" onclick="return top.tb_remove();"><?php _e('Cancel'); ?></a>
     1353    <label class="hidden" for="async-upload"><?php _e('Upload'); ?></label>
     1354    <input type="file" name="async-upload" id="async-upload" /> <input type="submit" class="button" name="html-upload" value="<?php _ea('Upload'); ?>" /> <a href="#" onclick="return top.tb_remove();"><?php _e('Cancel'); ?></a>
    13541355    </p>
    13551356    <div class="clear"></div>
  • trunk/wp-admin/includes/plugin-install.php

    r11109 r11152  
    164164        </select>
    165165        <input type="text" name="s" value="<?php echo attr($term) ?>" />
    166         <input type="submit" name="search" value="<?php echo attr(__('Search')) ?>" class="button" />
     166        <label class="hidden" for="plugin-search-input"><?php _e('Search Plugins'); ?></label>
     167        <input type="submit" id="plugin-search-input" name="search" value="<?php _ea('Search Plugins') ?>" class="button" />
    167168    </form><?php
    168169}
     
    211212    <form method="post" enctype="multipart/form-data" action="<?php echo admin_url('update.php?action=upload-plugin') ?>">
    212213        <?php wp_nonce_field( 'plugin-upload') ?>
    213         <input type="file" name="pluginzip" />
     214        <label class="hidden" for="pluginzip"><?php _e('Plugin zip file'); ?></label>
     215        <input type="file" id="pluginzip" name="pluginzip" />
    214216        <input type="submit" class="button" value="<?php _e('Install Now') ?>" />
    215217    </form>
Note: See TracChangeset for help on using the changeset viewer.