@@ 1067-1071 (lines=5) @@ | ||
1064 | 'post_status' => 'publish', |
|
1065 | 'post_author' => $author, |
|
1066 | ) ); |
|
1067 | if ( 0 == $home ) { |
|
1068 | $error[] = 'home insert: 0'; |
|
1069 | } elseif ( is_wp_error( $home ) ) { |
|
1070 | $error[] = 'home creation: '. $home->get_error_message(); |
|
1071 | } |
|
1072 | if ( ! ( update_option( 'page_on_front', $home ) || get_option( 'page_on_front' ) == $home ) ) { |
|
1073 | ||
1074 | $error[] = 'home set'; |
|
@@ 1085-1089 (lines=5) @@ | ||
1082 | 'post_status' => 'publish', |
|
1083 | 'post_author' => $author, |
|
1084 | ) ); |
|
1085 | if ( 0 == $blog ) { |
|
1086 | $error[] = 'blog insert: 0'; |
|
1087 | } elseif ( is_wp_error( $blog ) ) { |
|
1088 | $error[] = 'blog creation: '. $blog->get_error_message(); |
|
1089 | } |
|
1090 | if ( ! ( update_option( 'page_for_posts', $blog ) || get_option( 'page_for_posts' ) == $blog ) ) { |
|
1091 | $error[] = 'blog set'; |
|
1092 | } |