Changeset 51149 for trunk/src/wp-includes/theme-templates.php
- Timestamp:
- 06/15/2021 08:50:26 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme-templates.php
r51144 r51149 77 77 function the_block_template_skip_link() { 78 78 79 // Early exit if not a n FSEtheme.79 // Early exit if not a block theme. 80 80 if ( ! current_theme_supports( 'block-templates' ) ) { 81 return; 82 } 83 84 // Early exit if not a block template. 85 global $_wp_current_template_content; 86 if ( ! $_wp_current_template_content ) { 81 87 return; 82 88 } … … 138 144 // Get the site wrapper. 139 145 // The skip-link will be injected in the beginning of it. 140 parentEl = document.querySelector( '.wp-site-blocks' ) || document.body, 146 parentEl = document.querySelector( '.wp-site-blocks' ); 147 148 // Early exit if the root element was not found. 149 if ( ! parentEl ) { 150 return; 151 } 141 152 142 153 // Get the skip-link target's ID, and generate one if it doesn't exist.
Note: See TracChangeset
for help on using the changeset viewer.