diff --git a/src/wp-includes/script-modules.php b/src/wp-includes/script-modules.php index 80831f1a54a67..c5cc6cdab7d68 100644 --- a/src/wp-includes/script-modules.php +++ b/src/wp-includes/script-modules.php @@ -169,7 +169,7 @@ function wp_default_script_modules() { break; } - $path = "/wp-includes/js/dist/script-modules/{$file_name}"; + $path = includes_url( "js/dist/script-modules/{$file_name}" ); wp_register_script_module( $script_module_id, $path, $script_module_data['dependencies'], $script_module_data['version'] ); } }