Changeset 52243 for trunk/src/wp-includes/theme-templates.php
- Timestamp:
- 11/25/2021 01:05:30 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme-templates.php
r52062 r52243 166 166 ( function() { 167 167 var skipLinkTarget = document.querySelector( 'main' ), 168 parentEl,168 sibling, 169 169 skipLinkTargetID, 170 170 skipLink; … … 177 177 // Get the site wrapper. 178 178 // The skip-link will be injected in the beginning of it. 179 parentEl= document.querySelector( '.wp-site-blocks' );179 sibling = document.querySelector( '.wp-site-blocks' ); 180 180 181 181 // Early exit if the root element was not found. 182 if ( ! parentEl) {182 if ( ! sibling ) { 183 183 return; 184 184 } … … 198 198 199 199 // Inject the skip link. 200 parentEl.insertAdjacentElement( 'afterbegin', skipLink);200 sibling.parentElement.insertBefore( skipLink, sibling ); 201 201 }() ); 202 202 </script>
Note: See TracChangeset
for help on using the changeset viewer.