Make WordPress Core

Changeset 44988


Ignore:
Timestamp:
03/23/2019 04:38:48 PM (5 years ago)
Author:
afercia
Message:

Admin: Site Health JavaScript minor clean-up.

See #46573.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/admin/site-health.js

    r44986 r44988  
    2424            $( this ).focus();
    2525
    26             wp.a11y.speak( SiteHealth.string.site_info_copied, 'polite' );
     26            wp.a11y.speak( SiteHealth.string.site_info_copied );
    2727        }
    2828    } );
     
    108108        pct = ( ( 100 - val ) / 100 ) * c;
    109109
    110         $circle.css({ strokeDashoffset: pct } );
     110        $circle.css( { strokeDashoffset: pct } );
    111111
    112112        if ( 1 > parseInt( SiteHealth.site_status.issues.critical, 0 ) ) {
     
    133133        $progressBar.attr( 'data-pct', val );
    134134        $progressBar.attr( 'aria-valuenow', val );
    135 
    136         $( '.health-check-body' ).attr( 'aria-hidden', false );
    137135
    138136        $.post(
     
    145143        );
    146144
    147         wp.a11y.speak( SiteHealth.string.site_health_complete_screen_reader.replace( '%s', val + '%' ), 'polite' );
     145        wp.a11y.speak( SiteHealth.string.site_health_complete_screen_reader.replace( '%s', val + '%' ) );
    148146    }
    149147
Note: See TracChangeset for help on using the changeset viewer.