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 @@ -219,11 +219,11 @@ public function get_tasks_to_inject() {
219219 return [];
220220 }
221221
222- $ data = $ this ->get_data_collector ()->collect ();
222+ $ data = $ this ->transform_collector_data ( $ this -> get_data_collector ()->collect () );
223223 $ task_id = $ this ->get_task_id (
224224 [
225- 'term_id ' => $ data ['term_id ' ],
226- 'taxonomy ' => $ data ['taxonomy ' ],
225+ 'target_term_id ' => $ data ['target_term_id ' ],
226+ 'target_taxonomy ' => $ data ['target_taxonomy ' ],
227227 ]
228228 );
229229
@@ -234,7 +234,7 @@ public function get_tasks_to_inject() {
234234 // Transform the data to match the task data structure.
235235 $ task_data = $ this ->modify_injection_task_data (
236236 $ this ->get_task_details (
237- $ this -> transform_collector_data ( $ data )
237+ $ data
238238 )
239239 );
240240
Original file line number Diff line number Diff line change @@ -157,10 +157,10 @@ public function get_tasks_to_inject() {
157157 return [];
158158 }
159159
160- $ data = $ this ->get_data_collector ()->collect ();
160+ $ data = $ this ->transform_collector_data ( $ this -> get_data_collector ()->collect () );
161161 $ task_id = $ this ->get_task_id (
162162 [
163- 'post_id ' => $ data ['post_id ' ],
163+ 'target_post_id ' => $ data ['target_post_id ' ],
164164 ]
165165 );
166166
@@ -172,7 +172,7 @@ public function get_tasks_to_inject() {
172172 // Transform the data to match the task data structure.
173173 $ task_data = $ this ->modify_injection_task_data (
174174 $ this ->get_task_details (
175- $ this -> transform_collector_data ( $ data )
175+ $ data
176176 )
177177 );
178178
You can’t perform that action at this time.
0 commit comments