Changeset 56932 for trunk/src/wp-includes/theme-templates.php
- Timestamp:
- 10/13/2023 05:19:31 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme-templates.php
r56748 r56932 100 100 101 101 /** 102 * Prints the skip-link script & styles.102 * Enqueues the skip-link script & styles. 103 103 * 104 104 * @access private 105 * @since 5.8.0105 * @since 6.4.0 106 106 * 107 107 * @global string $_wp_current_template_content 108 108 */ 109 function the_block_template_skip_link() {109 function wp_enqueue_block_template_skip_link() { 110 110 global $_wp_current_template_content; 111 112 // Back-compat for plugins that disable functionality by unhooking this action. 113 if ( ! has_action( 'wp_footer', 'the_block_template_skip_link' ) ) { 114 return; 115 } 116 remove_action( 'wp_footer', 'the_block_template_skip_link' ); 111 117 112 118 // Early exit if not a block theme. … … 208 214 $skip_link_script = wp_remove_surrounding_empty_script_tags( ob_get_clean() ); 209 215 $script_handle = 'wp-block-template-skip-link'; 210 wp_register_script( $script_handle, false );216 wp_register_script( $script_handle, false, array(), false, array( 'in_footer' => true ) ); 211 217 wp_add_inline_script( $script_handle, $skip_link_script ); 212 218 wp_enqueue_script( $script_handle );
Note: See TracChangeset
for help on using the changeset viewer.