@@ 989-993 (lines=5) @@ | ||
986 | 'post_status' => 'publish', |
|
987 | 'post_author' => $author, |
|
988 | ) ); |
|
989 | if ( 0 == $home ) { |
|
990 | $error[] = 'home insert: 0'; |
|
991 | } elseif ( is_wp_error( $home ) ) { |
|
992 | $error[] = 'home creation: '. $home->get_error_message(); |
|
993 | } |
|
994 | if ( ! ( update_option( 'page_on_front', $home ) || get_option( 'page_on_front' ) == $home ) ) { |
|
995 | $error[] = 'home set'; |
|
996 | } |
|
@@ 1006-1010 (lines=5) @@ | ||
1003 | 'post_status' => 'publish', |
|
1004 | 'post_author' => $author, |
|
1005 | ) ); |
|
1006 | if ( 0 == $blog ) { |
|
1007 | $error[] = 'blog insert: 0'; |
|
1008 | } elseif ( is_wp_error( $blog ) ) { |
|
1009 | $error[] = 'blog creation: '. $blog->get_error_message(); |
|
1010 | } |
|
1011 | if ( ! ( update_option( 'page_for_posts', $blog ) || get_option( 'page_for_posts' ) == $blog ) ) { |
|
1012 | $error[] = 'blog set'; |
|
1013 | } |