WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/01/2019 03:17:37 PM (6 weeks ago)
Author:
afercia
Message:

Accessibility: Add a default title for the media modal dialog.

Makes sure the media modal dialog h1 heading isn't empty when custom media frames don't set a title. This is particularly important now that the media modal is an ARIA dialog, as the title is referenced by an aria-labelledby attribute to properly label the dialog.

Props donmhico, audrasjb.
Fixes #47612.

File:
1 edited

Legend:

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

    r45825 r45925  
    37653765    $strings = array(
    37663766        // Generic
     3767        'mediaFrameDefaultTitle'      => __( 'Media' ),
    37673768        'url'                         => __( 'URL' ),
    37683769        'addMedia'                    => __( 'Add Media' ),
Note: See TracChangeset for help on using the changeset viewer.