WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/10/2012 01:23:48 AM (8 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/screen.php

    r19987 r20168  
    984984        <div class='screen-options'>
    985985            <?php if ( !empty($per_page_label) ): ?>
    986                 <input type='text' class='screen-per-page' name='wp_screen_options[value]'
     986                <input type='number' step='1' min='1' class='screen-per-page' name='wp_screen_options[value]'
    987987                    id='<?php echo esc_attr( $option ); ?>' maxlength='3'
    988988                    value='<?php echo esc_attr( $per_page ); ?>' />
Note: See TracChangeset for help on using the changeset viewer.