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

git-svn-id: https://develop.svn.wordpress.org/trunk@20625 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-04-27 19:46:33 +00:00
parent b32a2a4f01
commit e3e988bf58
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 );
?>
<div class='screen-options'>
<?php if ( !empty($per_page_label) ): ?>
<input type='number' step='1' min='1' class='screen-per-page' name='wp_screen_options[value]'
id='<?php echo esc_attr( $option ); ?>' maxlength='3'
value='<?php echo esc_attr( $per_page ); ?>' />
<label for='<?php echo esc_attr( $option ); ?>'>
<div class="screen-options">
<?php if ( $per_page_label ) : ?>
<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"
value="<?php echo esc_attr( $per_page ); ?>" />
<label for="<?php echo esc_attr( $option ); ?>">
<?php echo esc_html( $per_page_label ); ?>
</label>
<?php endif;