File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
classes/suggested-tasks/providers Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -219,11 +219,11 @@ public function get_tasks_to_inject() {
219
219
return [];
220
220
}
221
221
222
- $ data = $ this ->get_data_collector ()->collect ();
222
+ $ data = $ this ->transform_collector_data ( $ this -> get_data_collector ()->collect () );
223
223
$ task_id = $ this ->get_task_id (
224
224
[
225
- 'term_id ' => $ data ['term_id ' ],
226
- 'taxonomy ' => $ data ['taxonomy ' ],
225
+ 'target_term_id ' => $ data ['target_term_id ' ],
226
+ 'target_taxonomy ' => $ data ['target_taxonomy ' ],
227
227
]
228
228
);
229
229
@@ -234,7 +234,7 @@ public function get_tasks_to_inject() {
234
234
// Transform the data to match the task data structure.
235
235
$ task_data = $ this ->modify_injection_task_data (
236
236
$ this ->get_task_details (
237
- $ this -> transform_collector_data ( $ data )
237
+ $ data
238
238
)
239
239
);
240
240
Original file line number Diff line number Diff line change @@ -157,10 +157,10 @@ public function get_tasks_to_inject() {
157
157
return [];
158
158
}
159
159
160
- $ data = $ this ->get_data_collector ()->collect ();
160
+ $ data = $ this ->transform_collector_data ( $ this -> get_data_collector ()->collect () );
161
161
$ task_id = $ this ->get_task_id (
162
162
[
163
- 'post_id ' => $ data ['post_id ' ],
163
+ 'target_post_id ' => $ data ['target_post_id ' ],
164
164
]
165
165
);
166
166
@@ -172,7 +172,7 @@ public function get_tasks_to_inject() {
172
172
// Transform the data to match the task data structure.
173
173
$ task_data = $ this ->modify_injection_task_data (
174
174
$ this ->get_task_details (
175
- $ this -> transform_collector_data ( $ data )
175
+ $ data
176
176
)
177
177
);
178
178
You can’t perform that action at this time.
0 commit comments