From acab83164fb060330cb1f6b7f5a298a2c64eb74e Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Wed, 23 Oct 2024 09:36:21 +0200 Subject: [PATCH] order by ID --- includes/class-migration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-migration.php b/includes/class-migration.php index 4006f141c..72bd683b7 100644 --- a/includes/class-migration.php +++ b/includes/class-migration.php @@ -285,7 +285,7 @@ private static function migrate_to_4_0_0() { $latest_post = get_posts( array( 'numberposts' => 1, - 'orderby' => 'date', + 'orderby' => 'ID', 'order' => 'DESC', 'post_type' => 'any', 'post_status' => 'publish',