From 1360d32bb31b4156862aa3daafe25e42b2232a09 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Mon, 11 Feb 2013 14:01:21 +0000 Subject: [PATCH] dashboard --- admin/woocommerce-admin-dashboard.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/admin/woocommerce-admin-dashboard.php b/admin/woocommerce-admin-dashboard.php index 677a1d38b45..bb0cd151b30 100644 --- a/admin/woocommerce-admin-dashboard.php +++ b/admin/woocommerce-admin-dashboard.php @@ -447,13 +447,11 @@ function woocommerce_dashboard_sales_js() { // Queue scripts $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min'; - wp_register_script( 'woocommerce_dashboard_sales', $woocommerce->plugin_url() . '/assets/js/admin/dashboard_sales'.$suffix.'.js', 'jquery', '1.0' ); + wp_register_script( 'woocommerce_dashboard_sales', $woocommerce->plugin_url() . '/assets/js/admin/dashboard_sales' . $suffix . '.js', array( 'jquery', 'flot', 'flot-resize' ), '1.0' ); wp_register_script( 'flot', $woocommerce->plugin_url() . '/assets/js/admin/jquery.flot'.$suffix.'.js', 'jquery', '1.0' ); wp_register_script( 'flot-resize', $woocommerce->plugin_url() . '/assets/js/admin/jquery.flot.resize'.$suffix.'.js', 'jquery', '1.0' ); wp_localize_script( 'woocommerce_dashboard_sales', 'params', $params ); - wp_print_scripts('flot'); - wp_print_scripts('flot-resize'); wp_print_scripts('woocommerce_dashboard_sales'); } \ No newline at end of file