Make WordPress Core


Ignore:
Timestamp:
05/14/2024 04:47:03 PM (2 months ago)
Author:
joedolson
Message:

Administration: A11y: Replace placeholders with visible labels.

Add visible labels to inputs that are using placeholder attributes as a substitute for visible labeling.

Labels added or made visible on the customizer theme search, customizer widget search, customizer menu item search, customizer new page UI, the search plugins screens, the media search screens, and the classic editor link inserter.

Props afercia, joedolson, rcreators, sabernhardt.
See #40331.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media.php

    r58143 r58146  
    48264826        'filterByDate'                => __( 'Filter by date' ),
    48274827        'filterByType'                => __( 'Filter by type' ),
    4828         'searchLabel'                 => __( 'Search' ),
     4828        'searchLabel'                 => __( 'Search media' ),
    48294829        'searchMediaLabel'            => __( 'Search media' ),          // Backward compatibility pre-5.3.
    48304830        'searchMediaPlaceholder'      => __( 'Search media items...' ), // Placeholder (no ellipsis), backward compatibility pre-5.3.
Note: See TracChangeset for help on using the changeset viewer.