From 72f72e79b85a4386bb90337677bf5cdf7342838f Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Wed, 3 May 2023 14:50:36 +0200 Subject: [PATCH] use custom (more error tolerant) version for migration --- includes/class-migration.php | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/includes/class-migration.php b/includes/class-migration.php index 619fc87..1e8c44b 100644 --- a/includes/class-migration.php +++ b/includes/class-migration.php @@ -1,6 +1,8 @@ set_error( $meta ); + } else { + $follower->from_meta( $meta ); + } + + $follower->upsert(); + + $result = wp_set_object_terms( $user_id, $follower->get_actor(), self::TAXONOMY, true ); } } }