Skip to content

Commit ae9cdb1

Browse files
committed
Fix issue in the user provider
1 parent 2582978 commit ae9cdb1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

classes/suggested-tasks/providers/class-user.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ public function modify_task_details_for_user_tasks_rest_format( $tasks, $args )
112112

113113
// Loop through all tasks in the flat array.
114114
foreach ( $tasks as $key => $task ) {
115+
// Only process user provider tasks.
116+
if ( ! isset( $task['prpl_provider']->slug ) || $task['prpl_provider']->slug !== self::PROVIDER_ID ) {
117+
continue;
118+
}
119+
115120
if ( \in_array( $task['id'], $modified_tasks, true ) ) {
116121
continue;
117122
}

0 commit comments

Comments
 (0)