mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +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:
@@ -1809,6 +1809,9 @@ if ( ! class_exists( 'um\admin\Admin' ) ) {
|
||||
'post_title' => sprintf( __( 'Duplicate of %s', 'ultimate-member' ), get_the_title( $post_id ) ),
|
||||
'post_status' => 'publish',
|
||||
'post_author' => get_current_user_id(),
|
||||
'meta_input' => array(
|
||||
'_um_mode' => get_post_meta( $post_id, '_um_mode', true ),
|
||||
),
|
||||
);
|
||||
|
||||
$n_id = wp_insert_post( $n );
|
||||
|
||||
Reference in New Issue
Block a user