Skip to content

Commit 8eb6be0

Browse files
authored
Merge pull request #514 from ProgressPlanner/filip/v16/fix-target-post-id
Fix target_post_id for content-review provider
2 parents 0290451 + 671fc2d commit 8eb6be0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

classes/suggested-tasks/providers/class-content-review.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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'],

0 commit comments

Comments
 (0)