WordPress.org

Make WordPress Core

Changeset 41682


Ignore:
Timestamp:
10/02/2017 07:24:24 PM (2 years ago)
Author:
afercia
Message:

Accessibility: Improve the Dashboard Nearby Events widget wp.a11y.speak() messages.

Avoids to announce the "city updated" message on page load.

Fixes #42037.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/dashboard.js

    r40799 r41682  
    426426                    $results.html( template( templateParams ) );
    427427                }
    428                 wp.a11y.speak( communityEventsData.l10n.city_updated.replace( l10nPlaceholder, templateParams.location.description ), 'assertive' );
     428
     429                if ( 'user' === initiatedBy ) {
     430                    wp.a11y.speak( communityEventsData.l10n.city_updated.replace( l10nPlaceholder, templateParams.location.description ), 'assertive' );
     431                }
    429432
    430433                elementVisibility['#community-events-location-message'] = true;
Note: See TracChangeset for help on using the changeset viewer.