Make WordPress Core

Changeset 57272


Ignore:
Timestamp:
01/11/2024 05:43:00 PM (4 months ago)
Author:
joedolson
Message:

Administration: Remove invalid attribute maxlength on number input.

Remove the maxlength attribute on screen options number of items per page input. Previously kept due to input inconsistencies in IE 11 and Edge, this invalid usage is no longer needed. IE 11 is no longer supported, and Edge now behaves according to specifications.

Props Arena94, afercia, joedolson.
Fixes #40610.

File:
1 edited

Legend:

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

    r55990 r57272  
    12801280                <label for="<?php echo esc_attr( $option ); ?>"><?php echo $per_page_label; ?></label>
    12811281                <input type="number" step="1" min="1" max="999" class="screen-per-page" name="wp_screen_options[value]"
    1282                     id="<?php echo esc_attr( $option ); ?>" maxlength="3"
     1282                    id="<?php echo esc_attr( $option ); ?>"
    12831283                    value="<?php echo esc_attr( $per_page ); ?>" />
    12841284            <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.