Skip to content

Commit 40bbbf2

Browse files
committed
Script Loader: Restore original position of print_enqueued_script_modules hook.
This hook registration was accidentally moved during iteration on the translation hook timing. Restore it to its original position to keep the diff minimal. See #65015.
1 parent 7057417 commit 40bbbf2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/wp-includes/class-wp-script-modules.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,11 +431,10 @@ public function add_hooks() {
431431
*/
432432
add_action( 'wp_head', array( $this, 'print_head_enqueued_script_modules' ) );
433433
}
434+
add_action( 'wp_footer', array( $this, 'print_enqueued_script_modules' ) );
434435
add_action( $position, array( $this, 'print_script_module_preloads' ) );
435436

436437
add_action( 'admin_print_footer_scripts', array( $this, 'print_import_map' ), 9 );
437-
438-
add_action( 'wp_footer', array( $this, 'print_enqueued_script_modules' ) );
439438
add_action( 'admin_print_footer_scripts', array( $this, 'print_enqueued_script_modules' ) );
440439
add_action( 'admin_print_footer_scripts', array( $this, 'print_script_module_preloads' ) );
441440

0 commit comments

Comments
 (0)