From 4ea341007f07069bea862ca86189265b72d9bfbc Mon Sep 17 00:00:00 2001 From: Mykyta Synelnikov Date: Wed, 13 Sep 2023 16:54:12 +0300 Subject: [PATCH] - added 'um_form_version' postmeta for make the legacy functionality in the future; --- includes/admin/core/class-admin-metabox.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/admin/core/class-admin-metabox.php b/includes/admin/core/class-admin-metabox.php index 934577e0..ff353493 100644 --- a/includes/admin/core/class-admin-metabox.php +++ b/includes/admin/core/class-admin-metabox.php @@ -1181,6 +1181,9 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) { return; } + // Set post meta for legacy support in the future. + add_post_meta( $post_id, 'um_form_version', UM_VERSION ); + if ( empty( $_POST['post_title'] ) ) { $where = array( 'ID' => $post_id ); // translators: %s: Form id.