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

git-svn-id: http://svn.automattic.com/wordpress/trunk@20625 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2012-04-27 19:46:33 +00:00
parent ca384fad85
commit 48fde56f29
1 changed files with 6 additions and 6 deletions

View File

@ -1008,12 +1008,12 @@ final class WP_Screen {
$per_page = apply_filters( 'edit_posts_per_page', $per_page, $this->post_type ); $per_page = apply_filters( 'edit_posts_per_page', $per_page, $this->post_type );
?> ?>
<div class='screen-options'> <div class="screen-options">
<?php if ( !empty($per_page_label) ): ?> <?php if ( $per_page_label ) : ?>
<input type='number' step='1' min='1' class='screen-per-page' name='wp_screen_options[value]' <input type="number" step="1" min="1" max="999" class="screen-per-page" name="wp_screen_options[value]"
id='<?php echo esc_attr( $option ); ?>' maxlength='3' id="<?php echo esc_attr( $option ); ?>" maxlength="3"
value='<?php echo esc_attr( $per_page ); ?>' /> value="<?php echo esc_attr( $per_page ); ?>" />
<label for='<?php echo esc_attr( $option ); ?>'> <label for="<?php echo esc_attr( $option ); ?>">
<?php echo esc_html( $per_page_label ); ?> <?php echo esc_html( $per_page_label ); ?>
</label> </label>
<?php endif; <?php endif;