Skip to content

Commit

Permalink
Add an extra condition in the personal-record-content widget
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Apr 3, 2024
1 parent 6e8d6fa commit aa78b9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion includes/widgets/class-personal-record-content.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ protected function the_content() {
</div>
<div class="prpl-widget-content">
<p>
<?php if ( (int) $record['max_streak'] <= (int) $record['current_streak'] ) : ?>
<?php if ( (int) $record['max_streak'] === 0 ) : ?>
<?php \esc_html_e( 'This is your first streak. Start adding content to your site every week and set a personal record!', 'progress-planner' ); ?>
<?php elseif ( (int) $record['max_streak'] <= (int) $record['current_streak'] ) : ?>
<?php
printf(
/* translators: %s: number of weeks. */
Expand Down

0 comments on commit aa78b9e

Please sign in to comment.