Changeset 56687 for trunk/src/wp-includes/theme-templates.php
- Timestamp:
- 09/25/2023 09:03:19 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme-templates.php
r56682 r56687 161 161 162 162 /** 163 * Printthe skip-link script.163 * Enqueue the skip-link script. 164 164 */ 165 ob_start(); 165 166 ?> 166 167 <script> … … 205 206 </script> 206 207 <?php 208 $skip_link_script = str_replace( array( '<script>', '</script>' ), '', ob_get_clean() ); 209 $script_handle = 'wp-block-template-skip-link'; 210 wp_register_script( $script_handle, false ); 211 wp_add_inline_script( $script_handle, $skip_link_script ); 212 wp_enqueue_script( $script_handle ); 207 213 } 208 214
Note: See TracChangeset
for help on using the changeset viewer.