Skip to content

Commit

Permalink
Refresh WordPress Nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
deployment_bot committed May 12, 2024
1 parent 6a5dbe1 commit 4f6c428
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,6 @@
} );
}

if ( skipLink ) {
// Focus the target of skip link after pressing Enter.
skipLink.addEventListener( 'keydown', focusTargetAfterEnter );
}

if ( shortlink ) {
shortlink.addEventListener( 'click', clickShortlink );
}
Expand Down Expand Up @@ -173,35 +168,6 @@
}
}

/**
* Focus the target of skip link after pressing Enter.
*
* @since 5.3.1
*
* @param {Event} event The keydown event.
*/
function focusTargetAfterEnter( event ) {
var id, userAgent;

if ( event.which !== 13 ) {
return;
}

id = event.target.getAttribute( 'href' );
userAgent = navigator.userAgent.toLowerCase();

if ( userAgent.indexOf( 'applewebkit' ) > -1 && id && id.charAt( 0 ) === '#' ) {
setTimeout( function() {
var target = document.getElementById( id.replace( '#', '' ) );

if ( target ) {
target.setAttribute( 'tabIndex', '0' );
target.focus();
}
}, 100 );
}
}

/**
* Toggle hover class for mobile devices.
*
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function getWordPressModuleDetails(wpVersion: string = "6.5"): { size: nu
case 'nightly':
/** @ts-ignore */
return {
size: 4988974,
size: 4989027,
url: url_nightly,
};

Expand Down
Binary file modified packages/playground/wordpress-builds/src/wordpress/wp-nightly.zip
Binary file not shown.

0 comments on commit 4f6c428

Please sign in to comment.