Skip to content

Commit

Permalink
Fix print functions missing script in their names
Browse files Browse the repository at this point in the history
  • Loading branch information
luisherranz committed Jan 23, 2024
1 parent c1a6909 commit 8645255
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wp-includes/class-wp-script-modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ public function dequeue( string $id ) {
public function add_hooks() {
$position = wp_is_block_theme() ? 'wp_head' : 'wp_footer';
add_action( $position, array( $this, 'print_import_map' ) );
add_action( $position, array( $this, 'print_enqueued_modules' ) );
add_action( $position, array( $this, 'print_module_preloads' ) );
add_action( $position, array( $this, 'print_enqueued_script_modules' ) );
add_action( $position, array( $this, 'print_script_module_preloads' ) );
}

/**
Expand Down

0 comments on commit 8645255

Please sign in to comment.