|
@@ 1040-1044 (lines=5) @@
|
| 1037 |
|
'post_status' => 'publish', |
| 1038 |
|
'post_author' => $author, |
| 1039 |
|
) ); |
| 1040 |
|
if ( 0 == $home ) { |
| 1041 |
|
$error[] = 'home insert: 0'; |
| 1042 |
|
} elseif ( is_wp_error( $home ) ) { |
| 1043 |
|
$error[] = 'home creation: '. $home->get_error_message(); |
| 1044 |
|
} |
| 1045 |
|
if ( ! ( update_option( 'page_on_front', $home ) || get_option( 'page_on_front' ) == $home ) ) { |
| 1046 |
|
$error[] = 'home set'; |
| 1047 |
|
} |
|
@@ 1057-1061 (lines=5) @@
|
| 1054 |
|
'post_status' => 'publish', |
| 1055 |
|
'post_author' => $author, |
| 1056 |
|
) ); |
| 1057 |
|
if ( 0 == $blog ) { |
| 1058 |
|
$error[] = 'blog insert: 0'; |
| 1059 |
|
} elseif ( is_wp_error( $blog ) ) { |
| 1060 |
|
$error[] = 'blog creation: '. $blog->get_error_message(); |
| 1061 |
|
} |
| 1062 |
|
if ( ! ( update_option( 'page_for_posts', $blog ) || get_option( 'page_for_posts' ) == $blog ) ) { |
| 1063 |
|
$error[] = 'blog set'; |
| 1064 |
|
} |