mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed form duplicate and PHP notice about empty mode;
- fixed first install and login/registration forms custom fields;
This commit is contained in:
@@ -97,13 +97,8 @@ KEY meta_value_indx (um_value(191))
|
||||
|
||||
$form_id = wp_insert_post( $form );
|
||||
|
||||
foreach ( UM()->config()->core_form_meta[ $id ] as $key => $value ) {
|
||||
if ( '_um_custom_fields' === $key ) {
|
||||
$array = maybe_unserialize( $value );
|
||||
update_post_meta( $form_id, $key, $array );
|
||||
} else {
|
||||
update_post_meta( $form_id, $key, $value );
|
||||
}
|
||||
foreach ( UM()->config()->core_form_meta[ $id ] as $meta_key => $meta_value ) {
|
||||
update_post_meta( $form_id, $meta_key, $meta_value );
|
||||
}
|
||||
|
||||
$core_forms[ $id ] = $form_id;
|
||||
@@ -132,13 +127,8 @@ KEY meta_value_indx (um_value(191))
|
||||
|
||||
$form_id = wp_insert_post( $form );
|
||||
|
||||
foreach ( UM()->config()->core_directory_meta[ $id ] as $key => $value ) {
|
||||
if ( '_um_custom_fields' === $key ) {
|
||||
$array = maybe_unserialize( $value );
|
||||
update_post_meta( $form_id, $key, $array );
|
||||
} else {
|
||||
update_post_meta( $form_id, $key, $value );
|
||||
}
|
||||
foreach ( UM()->config()->core_directory_meta[ $id ] as $meta_key => $meta_value ) {
|
||||
update_post_meta( $form_id, $meta_key, $meta_value );
|
||||
}
|
||||
|
||||
$core_directories[ $id ] = $form_id;
|
||||
|
||||
Reference in New Issue
Block a user