mirror of
git://develop.git.wordpress.org/
synced 2025-03-13 16:39:48 +01:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@58126 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
12dc16563b
commit
f14499b801
@ -178,6 +178,10 @@ class WP_Script_Modules {
|
||||
add_action( $position, array( $this, 'print_import_map' ) );
|
||||
add_action( $position, array( $this, 'print_enqueued_script_modules' ) );
|
||||
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' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user