Merge pull request woocommerce/woocommerce-admin#2302 from woocommerce/fix/duplicate-ext-names
Dashboard Extension Example: Make namespace unique
This commit is contained in:
commit
2c87233c24
|
@ -15,7 +15,7 @@ function dashboard_section_register_script() {
|
|||
}
|
||||
|
||||
wp_register_script(
|
||||
'add-report',
|
||||
'dashboard_section',
|
||||
plugins_url( '/dist/index.js', __FILE__ ),
|
||||
array(
|
||||
'wp-hooks',
|
||||
|
@ -27,6 +27,6 @@ function dashboard_section_register_script() {
|
|||
true
|
||||
);
|
||||
|
||||
wp_enqueue_script( 'add-report' );
|
||||
wp_enqueue_script( 'dashboard_section' );
|
||||
}
|
||||
add_action( 'admin_enqueue_scripts', 'dashboard_section_register_script' );
|
||||
|
|
Loading…
Reference in New Issue