We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f8ad0d commit 4431526Copy full SHA for 4431526
src/js/_enqueues/admin/site-health.js
@@ -44,8 +44,8 @@ jQuery( function( $ ) {
44
$( '.health-check-accordion' ).on( 'click', '.health-check-accordion-trigger', function() {
45
var isExpanded = ( 'true' === $( this ).attr( 'aria-expanded' ) );
46
47
- if ( 'undefined' !== typeof $( this ).attr( 'id' ) ) {
48
- window.location.hash = $( this ).attr( 'id' );
+ if ( $( this ).prop( 'id' ) ) {
+ window.location.hash = $( this ).prop( 'id' );
49
}
50
51
if ( isExpanded ) {
@@ -65,7 +65,7 @@ jQuery( function( $ ) {
65
if ( hash ) {
66
var requestedPanel = $( hash );
67
68
- if ( requestedPanel.length ) {
+ if ( requestedPanel.is( '.health-check-accordion-trigger' ) ) {
69
requestedPanel.trigger( 'click' );
70
71
0 commit comments