remove unneccessary dependencies
This commit is contained in:
@ -488,15 +488,11 @@ class Dashboard_Admin_Page extends Base_Admin_Page {
|
||||
|
||||
$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));
|
||||
}
|
||||
|
||||
$statistics = new Dashboard_Statistics(array(
|
||||
'start_date' => $this->start_date,
|
||||
|
@ -128,7 +128,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
),
|
||||
);
|
||||
|
||||
$date = wu_date($swap_order->scheduled_date);
|
||||
$date = new \DateTime($swap_order->scheduled_date);
|
||||
|
||||
// translators: %s is the date, using the site format options
|
||||
$message = sprintf(__('There is a change scheduled to take place on this membership in <strong>%s</strong>. You can preview the changes here. Scheduled changes are usually created by downgrades.', 'wp-ultimo'), $date->format(get_option('date_format')));
|
||||
@ -1078,7 +1078,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
),
|
||||
);
|
||||
|
||||
$date = wu_date($swap_order->scheduled_date);
|
||||
$date = new \DateTime($swap_order->scheduled_date);
|
||||
|
||||
// translators: %s is the date, using the site format options
|
||||
$message = sprintf(__('This is a <strong>preview</strong>. This page displays the final stage of the membership after the changes scheduled for <strong>%s</strong>. Saving here will persist these changes, so be careful.', 'wp-ultimo'), $date->format(get_option('date_format')));
|
||||
|
Reference in New Issue
Block a user