diff --git a/src/js/_enqueues/lib/link.js b/src/js/_enqueues/lib/link.js index 89adf33796588..e4708e476826e 100644 --- a/src/js/_enqueues/lib/link.js +++ b/src/js/_enqueues/lib/link.js @@ -105,6 +105,7 @@ var ed, $body = $( document.body ); + $( '#wpwrap' ).attr( 'aria-hidden', 'true' ); $body.addClass( 'modal-open' ); wpLink.modalOpen = true; @@ -281,6 +282,7 @@ close: function( reset ) { $( document.body ).removeClass( 'modal-open' ); + $( '#wpwrap' ).removeAttr( 'aria-hidden' ); wpLink.modalOpen = false; if ( reset !== 'noReset' ) { diff --git a/src/wp-includes/class-wp-editor.php b/src/wp-includes/class-wp-editor.php index 5d7ba224cc207..7a7c8c2350f33 100644 --- a/src/wp-includes/class-wp-editor.php +++ b/src/wp-includes/class-wp-editor.php @@ -1875,7 +1875,7 @@ public static function wp_link_dialog() { // `display: none` is required here, see #WP27605. ?> -