diff --git src/wp-admin/network/site-new.php src/wp-admin/network/site-new.php
index 0314d02af8..9e2d982739 100644
|
|
if ( isset( $_REQUEST['action'] ) && 'add-site' === $_REQUEST['action'] ) { |
65 | 65 | |
66 | 66 | $title = $blog['title']; |
67 | 67 | |
68 | | $meta = array( |
69 | | 'public' => 1, |
| 68 | $blog_meta = array(); |
| 69 | if ( isset( $blog['meta'] ) ) { |
| 70 | foreach ( $blog['meta'] as $blog_meta_key => $blog_meta_value ) { |
| 71 | if ( 'blog_public' === $blog_meta_key ) { |
| 72 | $blog_meta['public'] = intval( wp_unslash( $blog_meta_value ) ); |
| 73 | } else { |
| 74 | $blog_meta[ $blog_meta_key ] = sanitize_text_field( wp_unslash( $blog_meta_value ) ); |
| 75 | } |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | $meta = wp_parse_args( |
| 80 | $blog_meta, |
| 81 | array( |
| 82 | 'public' => 1, |
| 83 | ) |
70 | 84 | ); |
71 | 85 | |
72 | 86 | // Handle translation installation for the new site. |
… |
… |
if ( ! empty( $messages ) ) { |
262 | 276 | </td> |
263 | 277 | </tr> |
264 | 278 | <?php endif; // Languages. ?> |
| 279 | <tr class="form-field"> |
| 280 | <th scope="row"> |
| 281 | <label> |
| 282 | <?php esc_html_e( 'Allow search engines to index this site' ); ?> |
| 283 | </label> |
| 284 | </th> |
| 285 | <td> |
| 286 | <fieldset> |
| 287 | <legend class="screen-reader-text"><?php esc_html_e( 'Site Privacy' ); ?></legend> |
| 288 | <label for="site-privacy-public-on"> |
| 289 | <input name="blog[meta][blog_public]" type="radio" id="site-privacy-public-on" value="1"<?php checked( true ); ?> /> <?php echo esc_html_x( 'Yes', 'Multisite new site public privacy on' ); ?> |
| 290 | </label> |
| 291 | <br /> |
| 292 | <label for="site-privacy-public-off"> |
| 293 | <input name="blog[meta][blog_public]" type="radio" id="site-privacy-public-off" value="0" /> <?php echo esc_html_x( 'No', 'Multisite new site public privacy off' ); ?> |
| 294 | </label> |
| 295 | </fieldset> |
| 296 | </td> |
| 297 | </tr> |
265 | 298 | <tr class="form-field form-required"> |
266 | 299 | <th scope="row"> |
267 | 300 | <label for="admin-email"> |