Script Modules: Hooks are not registered in wp-admin
Script Modules cannot be used in wp-admin. The necessary hooks are registered on wp_head or wp_footer, but should also be registered for the admin variants so that modules can be used from wp-admin. Fixes #61086. Props jonsurrell, cbravobernal, gziolo. Built from https://develop.svn.wordpress.org/trunk@58126 git-svn-id: http://core.svn.wordpress.org/trunk@57591 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9817081728
commit
1953f53b01
|
@ -178,6 +178,10 @@ class WP_Script_Modules {
|
||||||
add_action( $position, array( $this, 'print_import_map' ) );
|
add_action( $position, array( $this, 'print_import_map' ) );
|
||||||
add_action( $position, array( $this, 'print_enqueued_script_modules' ) );
|
add_action( $position, array( $this, 'print_enqueued_script_modules' ) );
|
||||||
add_action( $position, array( $this, 'print_script_module_preloads' ) );
|
add_action( $position, array( $this, 'print_script_module_preloads' ) );
|
||||||
|
|
||||||
|
add_action( 'admin_print_footer_scripts', array( $this, 'print_import_map' ) );
|
||||||
|
add_action( 'admin_print_footer_scripts', array( $this, 'print_enqueued_script_modules' ) );
|
||||||
|
add_action( 'admin_print_footer_scripts', array( $this, 'print_script_module_preloads' ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.6-alpha-58125';
|
$wp_version = '6.6-alpha-58126';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue