- fixed #1427 um_form_version meta is unique;

This commit is contained in:
Mykyta Synelnikov
2024-01-15 10:04:07 +02:00
parent ce153ffa58
commit 7a4690b48e
+1 -1
View File
@@ -1267,7 +1267,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
}
// Set post meta for legacy support in the future.
add_post_meta( $post_id, 'um_form_version', UM_VERSION );
add_post_meta( $post_id, 'um_form_version', UM_VERSION, true );
if ( empty( $_POST['post_title'] ) ) {
$where = array( 'ID' => $post_id );