File tree Expand file tree Collapse file tree
classes/suggested-tasks/providers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ public function should_add_task() {
285285 continue ;
286286 }
287287
288- $ task_id = $ this ->get_task_id ( [ 'post_id ' => $ post ->ID ] );
288+ $ task_id = $ this ->get_task_id ( [ 'target_post_id ' => $ post ->ID ] );
289289
290290 // Don't add the task if it was completed.
291291 if ( true === \progress_planner ()->get_suggested_tasks ()->was_task_completed ( $ task_id ) ) {
@@ -320,7 +320,7 @@ public function get_tasks_to_inject() {
320320 }
321321
322322 $ task_to_inject [] = [
323- 'task_id ' => $ this ->get_task_id ( [ 'post_id ' => $ task_data ['target_post_id ' ] ] ),
323+ 'task_id ' => $ this ->get_task_id ( [ 'target_post_id ' => $ task_data ['target_post_id ' ] ] ),
324324 'provider_id ' => $ this ->get_provider_id (),
325325 'category ' => $ this ->get_provider_category (),
326326 'target_post_id ' => $ task_data ['target_post_id ' ],
You can’t perform that action at this time.
0 commit comments