WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/10/2012 01:23:48 AM (7 years ago)
Author:
azaozz
Message:

Set proper HTML5 input types in the admin, props georgestephanis, fixes #17863

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-list-table.php

    r20104 r20168  
    213213<p class="search-box">
    214214    <label class="screen-reader-text" for="<?php echo $input_id ?>"><?php echo $text; ?>:</label>
    215     <input type="text" id="<?php echo $input_id ?>" name="s" value="<?php _admin_search_query(); ?>" />
     215    <input type="search" id="<?php echo $input_id ?>" name="s" value="<?php _admin_search_query(); ?>" />
    216216    <?php submit_button( $text, 'button', false, false, array('id' => 'search-submit') ); ?>
    217217</p>
     
    520520            $html_current_page = $current;
    521521        else
    522             $html_current_page = sprintf( "<input class='current-page' title='%s' type='text' name='%s' value='%s' size='%d' />",
     522            $html_current_page = sprintf( "<input class='current-page' title='%s' type='number' step='1' min='1' name='paged' value='%s' size='%d' />",
    523523                esc_attr__( 'Current page' ),
    524                 esc_attr( 'paged' ),
    525524                $current,
    526525                strlen( $total_pages )
Note: See TracChangeset for help on using the changeset viewer.