WordPress.org

Make WordPress Core

Changeset 20625


Ignore:
Timestamp:
04/27/12 19:46:33 (2 years ago)
Author:
nacin
Message:

Add a max of 999 to the screen options items per page input. props georgestephanis. fixes #20420.

File:
1 edited

Legend:

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

    r20591 r20625  
    10091009 
    10101010        ?> 
    1011         <div class='screen-options'> 
    1012             <?php if ( !empty($per_page_label) ): ?> 
    1013                 <input type='number' step='1' min='1' class='screen-per-page' name='wp_screen_options[value]' 
    1014                     id='<?php echo esc_attr( $option ); ?>' maxlength='3' 
    1015                     value='<?php echo esc_attr( $per_page ); ?>' /> 
    1016                 <label for='<?php echo esc_attr( $option ); ?>'> 
     1011        <div class="screen-options"> 
     1012            <?php if ( $per_page_label ) : ?> 
     1013                <input type="number" step="1" min="1" max="999" class="screen-per-page" name="wp_screen_options[value]" 
     1014                    id="<?php echo esc_attr( $option ); ?>" maxlength="3" 
     1015                    value="<?php echo esc_attr( $per_page ); ?>" /> 
     1016                <label for="<?php echo esc_attr( $option ); ?>"> 
    10171017                    <?php echo esc_html( $per_page_label ); ?> 
    10181018                </label> 
Note: See TracChangeset for help on using the changeset viewer.