We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7420f6 commit 89d3339Copy full SHA for 89d3339
1 file changed
classes/ui/class-chart.php
@@ -109,6 +109,11 @@ public function get_chart_data( $args = [] ) {
109
*/
110
$previous_period_activities = [];
111
if ( $args['normalized'] ) {
112
+ /**
113
+ * The start date of the first period.
114
+ *
115
+ * @var \DateTime $first_period_start
116
+ */
117
$first_period_start = $periods[0]['start_date'];
118
$previous_month_start = ( clone $first_period_start )->modify( '-1 month' );
119
$previous_month_end = ( clone $first_period_start )->modify( '-1 day' );
0 commit comments