remove unneccessary dependencies
This commit is contained in:
@ -198,15 +198,11 @@ class Dashboard_Taxes_Tab {
|
||||
|
||||
$month_list = array();
|
||||
|
||||
$start = date_i18n('Y-m-d 00:00:00', strtotime('first day of january this year'));
|
||||
$current_year = date_i18n('Y');
|
||||
|
||||
for ($i = 0; $i < 12; $i++) {
|
||||
|
||||
$start_date = wu_date($start);
|
||||
|
||||
$month_list[] = date_i18n('M y', $start_date->addMonths($i)->format('U'));
|
||||
|
||||
} // end for;
|
||||
for ($i = 1; $i <= 12; $i++) {
|
||||
$month_list[] = date_i18n('M y', mktime(0, 0,0,$i,1, $current_year));
|
||||
}
|
||||
|
||||
wp_register_script('wu-tax-stats', wu_get_asset('tax-statistics.js', 'js'), array('jquery', 'wu-functions', 'wu-ajax-list-table', 'moment', 'wu-block-ui', 'dashboard', 'wu-apex-charts', 'wu-vue-apex-charts'), wu_get_version(), true);
|
||||
|
||||
|
Reference in New Issue
Block a user