@@ 1002-1006 (lines=5) @@ | ||
999 | 'post_status' => 'publish', |
|
1000 | 'post_author' => $author, |
|
1001 | ) ); |
|
1002 | if ( 0 == $home ) { |
|
1003 | $error[] = 'home insert: 0'; |
|
1004 | } elseif ( is_wp_error( $home ) ) { |
|
1005 | $error[] = 'home creation: '. $home->get_error_message(); |
|
1006 | } |
|
1007 | if ( ! ( update_option( 'page_on_front', $home ) || get_option( 'page_on_front' ) == $home ) ) { |
|
1008 | $error[] = 'home set'; |
|
1009 | } |
|
@@ 1019-1023 (lines=5) @@ | ||
1016 | 'post_status' => 'publish', |
|
1017 | 'post_author' => $author, |
|
1018 | ) ); |
|
1019 | if ( 0 == $blog ) { |
|
1020 | $error[] = 'blog insert: 0'; |
|
1021 | } elseif ( is_wp_error( $blog ) ) { |
|
1022 | $error[] = 'blog creation: '. $blog->get_error_message(); |
|
1023 | } |
|
1024 | if ( ! ( update_option( 'page_for_posts', $blog ) || get_option( 'page_for_posts' ) == $blog ) ) { |
|
1025 | $error[] = 'blog set'; |
|
1026 | } |