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:
parent
ca384fad85
commit
48fde56f29
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue