Merge pull request woocommerce/woocommerce-admin#2302 from woocommerce/fix/duplicate-ext-names

Dashboard Extension Example: Make namespace unique
This commit is contained in:
Paul Sealock 2019-05-28 06:40:29 +12:00 committed by GitHub
commit 2c87233c24
1 changed files with 2 additions and 2 deletions

View File

@ -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' );