Skip to content

Commit 561a78c

Browse files
authored
Merge branch 'develop' into filip/alternative-lock
2 parents 773d8b5 + 1905b20 commit 561a78c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

classes/class-suggested-tasks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ public function rest_prepare_recommendation( $response, $post ) {
444444
Check if task was completed before - for example, comments were disabled and then re-enabled, and remove points if so.
445445
* Those are tasks which are completed by toggling an option, so non repetitive & not user tasks.
446446
*/
447-
if ( ! $provider->is_repetitive() && $provider->task_has_activity( $response->data['meta']['prpl_task_id'] ) ) {
447+
if ( ! \has_term( 'user', 'prpl_recommendations_provider', $post->ID ) && ! $provider->is_repetitive() && $provider->task_has_activity( $response->data['meta']['prpl_task_id'] ) ) {
448448
$response->data['meta']['prpl_points'] = 0;
449449
}
450450
}

views/page-widgets/badge-streak-maintenance.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
exit;
1010
}
1111

12-
$prpl_widget_details = \progress_planner()->get_admin__widgets__badge_streak_content()->get_details( 'maintenance' );
12+
$prpl_widget_details = \progress_planner()->get_admin__widgets__badge_streak_maintenance()->get_details( 'maintenance' );
1313
if ( ! $prpl_widget_details ) {
1414
return;
1515
}

0 commit comments

Comments
 (0)