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