Version 1.0.46

This commit is contained in:
ultimatemember
2015-02-08 17:27:04 +02:00
parent 98ce5bc2ef
commit a86f5da070
8 changed files with 43 additions and 35 deletions
+2 -1
View File
@@ -345,12 +345,13 @@ class UM_Setup {
'post_title' => $array['title'],
'post_content' => $content,
'post_name' => $slug,
'post_type' => 'page',
'post_type' => 'post',
'post_status' => 'publish',
'post_author' => um_user('ID'),
);
$post_id = wp_insert_post( $user_page );
wp_update_post( array('ID' => $post_id, 'post_type' => 'page' ) );
update_post_meta($post_id, '_um_core', $slug);