Skip to content

Commit 43cbc15

Browse files
committed
fix missed conversions, simplify formatter data usage
1 parent 62a14e7 commit 43cbc15

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

classes/suggested-tasks/providers/class-remove-terms-without-posts.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

classes/suggested-tasks/providers/integrations/yoast/class-fix-orphaned-content.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)