diff --git a/admin/woocommerce-admin-dashboard.php b/admin/woocommerce-admin-dashboard.php index b0d9af1efd1..68af5355de7 100644 --- a/admin/woocommerce-admin-dashboard.php +++ b/admin/woocommerce-admin-dashboard.php @@ -175,7 +175,7 @@ function woocommerce_init_dashboard_widgets() { $current_month_offset = 0; - if (isset($_GET['month'])) $current_month_offset = (int) $_GET['month']; + if (isset($_GET['wc_sales_month'])) $current_month_offset = (int) $_GET['wc_sales_month']; $the_month_num = date('n', strtotime('NOW '.($current_month_offset).' MONTH')); $the_year = date('Y', strtotime('NOW '.($current_month_offset).' MONTH')); @@ -183,10 +183,10 @@ function woocommerce_init_dashboard_widgets() { $sales_heading = ''; if ($the_month_num!=date('m')) : - $sales_heading .= ''; + $sales_heading .= ''; endif; - $sales_heading .= ''.__('Monthly Sales', 'woocommerce').''; + $sales_heading .= ''.__('Monthly Sales', 'woocommerce').''; if(current_user_can('manage_woocommerce_orders')){ wp_add_dashboard_widget( 'woocommerce_dashboard_right_now', __( 'WooCommerce Right Now', 'woocommerce' ), 'woocommerce_dashboard_widget_right_now' );