diff --git a/wp-admin/css/forms.css b/wp-admin/css/forms.css
index 88e8688..fa63df2 100644
|
a
|
b
|
table.form-table td .updated p {
|
| 935 | 935 | max-width: 25em; |
| 936 | 936 | } |
| 937 | 937 | |
| | 938 | .form-field #scheme { |
| | 939 | max-width: 4em; |
| | 940 | } |
| | 941 | |
| 938 | 942 | .form-field #domain { |
| 939 | 943 | max-width: 22em; |
| 940 | 944 | } |
diff --git a/wp-admin/network/site-info.php b/wp-admin/network/site-info.php
index 50f287d..14039db 100644
|
a
|
b
|
if ( isset( $_REQUEST['action'] ) && 'update-site' == $_REQUEST['action'] ) {
|
| 62 | 62 | delete_option( 'rewrite_rules' ); |
| 63 | 63 | |
| 64 | 64 | $blog_data = wp_unslash( $_POST['blog'] ); |
| 65 | | $blog_data['scheme'] = $parsed_scheme; |
| 66 | 65 | |
| 67 | 66 | if ( $is_main_site ) { |
| 68 | 67 | // On the network's main site, don't allow the domain or path to change. |
| 69 | 68 | $blog_data['domain'] = $details->domain; |
| 70 | 69 | $blog_data['path'] = $details->path; |
| | 70 | |
| | 71 | if ( ! $blog_data['scheme'] ) { |
| | 72 | $blog_data['scheme'] = $parsed_scheme; |
| | 73 | } |
| 71 | 74 | } else { |
| 72 | 75 | // For any other site, the scheme, domain, and path can all be changed. We first |
| 73 | 76 | // need to ensure a scheme has been provided, otherwise fallback to the existing. |
| … |
… |
if ( ! empty( $messages ) ) {
|
| 164 | 167 | <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" /> |
| 165 | 168 | <table class="form-table"> |
| 166 | 169 | <?php |
| 167 | | // The main site of the network should not be updated on this page. |
| | 170 | // Only the scheme for the main site can be updated. |
| 168 | 171 | if ( $is_main_site ) : ?> |
| 169 | 172 | <tr class="form-field"> |
| 170 | 173 | <th scope="row"><?php _e( 'Site URL' ); ?></th> |
| 171 | | <td><?php echo esc_url( $details->siteurl ); ?></td> |
| | 174 | <td><input name="blog[scheme]" type="text" id="scheme" value="<?php echo esc_attr( $parsed_scheme ) ?>" |
| | 175 | size="5" class="small-text" />://<?php echo esc_html( $details->domain . $details->path ); ?></td> |
| 172 | 176 | </tr> |
| 173 | 177 | <?php |
| 174 | 178 | // For any other site, the scheme, domain, and path can all be changed. |