File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ Bugs we fixed:
99* Exclude taxonomies which are marked as not indexable in Yoast SEO
1010* Improve completed task check for "Unpublished content" task
1111* Fix "Delete the 'Sample Page' page" interactive task
12+ * Remove 3rd party plugin tasks if they are deactivated.
1213
1314= 1.7.0 =
1415
Original file line number Diff line number Diff line change @@ -254,14 +254,10 @@ public function evaluate_task( Task $task ) {
254254 return false ;
255255 }
256256 $ task_provider = $ this ->get_task_provider ( $ task ->provider ->slug );
257- if ( ! $ task_provider ) {
258- return false ;
259- }
260-
261- // Check if the task is no longer relevant.
262- if ( ! $ task_provider ->is_task_relevant () ) {
257+ if ( ! $ task_provider || ! $ task_provider ->is_task_relevant () ) {
263258 // Remove the task from the published tasks.
264259 \progress_planner ()->get_suggested_tasks_db ()->delete_recommendation ( $ task ->ID );
260+ return false ;
265261 }
266262
267263 return $ task_provider ->evaluate_task ( $ task ->task_id );
Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ Bugs we fixed:
121121* Exclude taxonomies which are marked as not indexable in Yoast SEO
122122* Improve completed task check for "Unpublished content" task
123123* Fix "Delete the 'Sample Page' page" interactive task
124+ * Remove 3rd party plugin tasks if they are deactivated.
124125
125126= 1.7.0 =
126127
You can’t perform that action at this time.
0 commit comments