Skip to content

Commit 7dc4f19

Browse files
committed
Include all providers in the migration map, ordered by priority
1 parent 5501c51 commit 7dc4f19

1 file changed

Lines changed: 46 additions & 22 deletions

File tree

classes/update/class-update-190.php

Lines changed: 46 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -163,30 +163,54 @@ public function cleanup_category_taxonomy() {
163163
*/
164164
public function migrate_task_priorities() {
165165
// Map of provider_id => new priority value.
166+
// Ordered by priority (low number = high priority).
166167
// This is hardcoded to avoid dependency on tasks_manager being initialized.
167168
$priority_map = [
168-
'core-siteicon' => 1,
169-
'core-blogdescription' => 2,
170-
'core-permalink-structure' => 3,
171-
'email-sending' => 4,
172-
'search-engine-visibility' => 5,
173-
'select-timezone' => 6,
174-
'set-date-format' => 7,
175-
'select-locale' => 8,
176-
'settings-saved' => 10,
177-
'wp-debug-display' => 10,
178-
'review-post' => 10,
179-
'update-core' => 20,
180-
'php-version' => 25,
181-
'fewer-tags' => 32,
182-
'unpublished-content' => 55,
183-
'remove-inactive-plugins' => 60,
184-
'rename-uncategorized' => 60,
185-
'remove-terms-without-posts' => 60,
186-
'set-valuable-post-types' => 70,
187-
'update-term-description' => 80,
188-
'yoast-cornerstone-workout' => 20,
189-
'yoast-orphaned-content' => 20,
169+
'core-siteicon' => 1,
170+
'core-blogdescription' => 2,
171+
'core-permalink-structure' => 3,
172+
'sending-email' => 4,
173+
'search-engine-visibility' => 5,
174+
'select-timezone' => 6,
175+
'set-date-format' => 7,
176+
'select-locale' => 8,
177+
'disable-comments' => 9,
178+
'settings-saved' => 10,
179+
'wp-debug-display' => 10,
180+
'review-post' => 10,
181+
'disable-comment-pagination' => 10,
182+
'sample-page' => 14,
183+
'hello-world' => 15,
184+
'update-core' => 20,
185+
'seo-plugin' => 20,
186+
'yoast-cornerstone-workout' => 20,
187+
'yoast-orphaned-content-workout' => 20,
188+
'yoast-date-archive' => 20,
189+
'yoast-format-archive' => 20,
190+
'yoast-author-archive' => 20,
191+
'yoast-media-pages' => 20,
192+
'yoast-organization-logo' => 20,
193+
'yoast-crawl-settings-feed-authors' => 20,
194+
'yoast-crawl-settings-feed-global-comments' => 20,
195+
'yoast-crawl-settings-emoji-scripts' => 20,
196+
'yoast-fix-orphaned-content' => 20,
197+
'aioseo-media-pages' => 20,
198+
'aioseo-organization-logo' => 20,
199+
'aioseo-crawl-settings-feed-comments' => 20,
200+
'aioseo-author-archive' => 20,
201+
'aioseo-crawl-settings-feed-authors' => 20,
202+
'aioseo-date-archive' => 20,
203+
'php-version' => 25,
204+
'fewer-tags' => 32,
205+
'collaborator' => 50,
206+
'user' => 50,
207+
'create-post' => 50,
208+
'unpublished-content' => 55,
209+
'remove-inactive-plugins' => 60,
210+
'rename-uncategorized-category' => 60,
211+
'remove-terms-without-posts' => 60,
212+
'set-valuable-post-types' => 70,
213+
'update-term-description' => 80,
190214
];
191215

192216
// Loop through each provider and update its tasks.

0 commit comments

Comments
 (0)