51 '<p>' . __( 'This screen sets and changes options for the network as a whole. The first site is the main site in the network and network options are pulled from that original site’s options.' ) . '</p>' . |
51 '<p>' . __( 'This screen sets and changes options for the network as a whole. The first site is the main site in the network and network options are pulled from that original site’s options.' ) . '</p>' . |
52 '<p>' . __( 'Operational settings has fields for the network’s name and admin email.' ) . '</p>' . |
52 '<p>' . __( 'Operational settings has fields for the network’s name and admin email.' ) . '</p>' . |
53 '<p>' . __( 'Registration settings can disable/enable public signups. If you let others sign up for a site, install spam plugins. Spaces, not commas, should separate names banned as sites for this network.' ) . '</p>' . |
53 '<p>' . __( 'Registration settings can disable/enable public signups. If you let others sign up for a site, install spam plugins. Spaces, not commas, should separate names banned as sites for this network.' ) . '</p>' . |
54 '<p>' . __( 'New site settings are defaults applied when a new site is created in the network. These include welcome email for when a new site or user account is registered, and what᾿s put in the first post, page, comment, comment author, and comment URL.' ) . '</p>' . |
54 '<p>' . __( 'New site settings are defaults applied when a new site is created in the network. These include welcome email for when a new site or user account is registered, and what᾿s put in the first post, page, comment, comment author, and comment URL.' ) . '</p>' . |
55 '<p>' . __( 'Upload settings control the size of the uploaded files and the amount of available upload space for each site. You can change the default value for specific sites when you edit a particular site. Allowed file types are also listed (space separated only).' ) . '</p>' . |
55 '<p>' . __( 'Upload settings control the size of the uploaded files and the amount of available upload space for each site. You can change the default value for specific sites when you edit a particular site. Allowed file types are also listed (space separated only).' ) . '</p>' . |
56 '<p>' . __( 'You can set the language, and the translation files will be automatically downloaded and installed (available if your filesystem is writable).' ) . '</p>' . |
56 '<p>' . __( 'You can set the language, and WordPress will automatically download and install the translation files (available if your filesystem is writable).' ) . '</p>' . |
57 '<p>' . __( 'Menu setting enables/disables the plugin menus from appearing for non super admins, so that only super admins, not site admins, have access to activate plugins.' ) . '</p>' . |
57 '<p>' . __( 'Menu setting enables/disables the plugin menus from appearing for non super admins, so that only super admins, not site admins, have access to activate plugins.' ) . '</p>' . |
58 '<p>' . __( 'Super admins can no longer be added on the Options screen. You must now go to the list of existing users on Network Admin > Users and click on Username or the Edit action link below that name. This goes to an Edit User page where you can check a box to grant super admin privileges.' ) . '</p>', |
58 '<p>' . __( 'Super admins can no longer be added on the Options screen. You must now go to the list of existing users on Network Admin > Users and click on Username or the Edit action link below that name. This goes to an Edit User page where you can check a box to grant super admin privileges.' ) . '</p>', |
59 ) |
59 ) |
60 ); |
60 ); |
61 |
61 |
62 get_current_screen()->set_help_sidebar( |
62 get_current_screen()->set_help_sidebar( |
63 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
63 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
64 '<p>' . __( '<a href="https://wordpress.org/support/article/network-admin-settings-screen/">Documentation on Network Settings</a>' ) . '</p>' . |
64 '<p>' . __( '<a href="https://developer.wordpress.org/advanced-administration/multisite/admin/settings/">Documentation on Network Settings</a>' ) . '</p>' . |
65 '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
65 '<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>' |
66 ); |
66 ); |
67 |
67 |
68 if ( $_POST ) { |
68 if ( $_POST ) { |
69 /** This action is documented in wp-admin/network/edit.php */ |
69 /** This action is documented in wp-admin/network/edit.php */ |
70 do_action( 'wpmuadminedit' ); |
70 do_action( 'wpmuadminedit' ); |
98 'first_comment_url', |
98 'first_comment_url', |
99 'first_comment_author', |
99 'first_comment_author', |
100 'welcome_email', |
100 'welcome_email', |
101 'welcome_user_email', |
101 'welcome_user_email', |
102 'fileupload_maxk', |
102 'fileupload_maxk', |
103 'global_terms_enabled', |
|
104 'illegal_names', |
103 'illegal_names', |
105 'limited_email_domains', |
104 'limited_email_domains', |
106 'banned_email_domains', |
105 'banned_email_domains', |
107 'WPLANG', |
106 'WPLANG', |
108 'new_admin_email', |
107 'new_admin_email', |
165 <?php _e( 'This address is used for admin purposes. If you change this, an email will be sent to your new address to confirm it. <strong>The new address will not become active until confirmed.</strong>' ); ?> |
170 <?php _e( 'This address is used for admin purposes. If you change this, an email will be sent to your new address to confirm it. <strong>The new address will not become active until confirmed.</strong>' ); ?> |
166 </p> |
171 </p> |
167 <?php |
172 <?php |
168 $new_admin_email = get_site_option( 'new_admin_email' ); |
173 $new_admin_email = get_site_option( 'new_admin_email' ); |
169 if ( $new_admin_email && get_site_option( 'admin_email' ) !== $new_admin_email ) : |
174 if ( $new_admin_email && get_site_option( 'admin_email' ) !== $new_admin_email ) : |
170 ?> |
175 $notice_message = sprintf( |
171 <div class="updated inline"> |
176 /* translators: %s: New network admin email. */ |
172 <p> |
177 __( 'There is a pending change of the network admin email to %s.' ), |
173 <?php |
178 '<code>' . esc_html( $new_admin_email ) . '</code>' |
174 printf( |
179 ); |
175 /* translators: %s: New network admin email. */ |
180 |
176 __( 'There is a pending change of the network admin email to %s.' ), |
181 $notice_message .= sprintf( |
177 '<code>' . esc_html( $new_admin_email ) . '</code>' |
182 ' <a href="%1$s">%2$s</a>', |
178 ); |
183 esc_url( wp_nonce_url( network_admin_url( 'settings.php?dismiss=new_network_admin_email' ), 'dismiss_new_network_admin_email' ) ), |
179 printf( |
184 __( 'Cancel' ) |
180 ' <a href="%1$s">%2$s</a>', |
185 ); |
181 esc_url( wp_nonce_url( network_admin_url( 'settings.php?dismiss=new_network_admin_email' ), 'dismiss_new_network_admin_email' ) ), |
186 |
182 __( 'Cancel' ) |
187 wp_admin_notice( |
183 ); |
188 $notice_message, |
184 ?> |
189 array( |
185 </p> |
190 'type' => 'warning', |
186 </div> |
191 'dismissible' => true, |
187 <?php endif; ?> |
192 'additional_classes' => array( 'inline' ), |
|
193 ) |
|
194 ); |
|
195 endif; |
|
196 ?> |
188 </td> |
197 </td> |
189 </tr> |
198 </tr> |
190 </table> |
199 </table> |
191 <h2><?php _e( 'Registration Settings' ); ?></h2> |
200 <h2><?php _e( 'Registration Settings' ); ?></h2> |
192 <table class="form-table" role="presentation"> |
201 <table class="form-table" role="presentation"> |
198 } |
207 } |
199 $reg = get_site_option( 'registration' ); |
208 $reg = get_site_option( 'registration' ); |
200 ?> |
209 ?> |
201 <td> |
210 <td> |
202 <fieldset> |
211 <fieldset> |
203 <legend class="screen-reader-text"><?php _e( 'New registrations settings' ); ?></legend> |
212 <legend class="screen-reader-text"> |
|
213 <?php |
|
214 /* translators: Hidden accessibility text. */ |
|
215 _e( 'New registrations settings' ); |
|
216 ?> |
|
217 </legend> |
204 <label><input name="registration" type="radio" id="registration1" value="none"<?php checked( $reg, 'none' ); ?> /> <?php _e( 'Registration is disabled' ); ?></label><br /> |
218 <label><input name="registration" type="radio" id="registration1" value="none"<?php checked( $reg, 'none' ); ?> /> <?php _e( 'Registration is disabled' ); ?></label><br /> |
205 <label><input name="registration" type="radio" id="registration2" value="user"<?php checked( $reg, 'user' ); ?> /> <?php _e( 'User accounts may be registered' ); ?></label><br /> |
219 <label><input name="registration" type="radio" id="registration2" value="user"<?php checked( $reg, 'user' ); ?> /> <?php _e( 'User accounts may be registered' ); ?></label><br /> |
206 <label><input name="registration" type="radio" id="registration3" value="blog"<?php checked( $reg, 'blog' ); ?> /> <?php _e( 'Logged in users may register new sites' ); ?></label><br /> |
220 <label><input name="registration" type="radio" id="registration3" value="blog"<?php checked( $reg, 'blog' ); ?> /> <?php _e( 'Logged in users may register new sites' ); ?></label><br /> |
207 <label><input name="registration" type="radio" id="registration4" value="all"<?php checked( $reg, 'all' ); ?> /> <?php _e( 'Both sites and user accounts can be registered' ); ?></label> |
221 <label><input name="registration" type="radio" id="registration4" value="all"<?php checked( $reg, 'all' ); ?> /> <?php _e( 'Both sites and user accounts can be registered' ); ?></label> |
208 <?php |
222 <?php |
492 <table id="menu" class="form-table"> |
512 <table id="menu" class="form-table"> |
493 <tr> |
513 <tr> |
494 <th scope="row"><?php _e( 'Enable administration menus' ); ?></th> |
514 <th scope="row"><?php _e( 'Enable administration menus' ); ?></th> |
495 <td> |
515 <td> |
496 <?php |
516 <?php |
497 echo '<fieldset><legend class="screen-reader-text">' . __( 'Enable menus' ) . '</legend>'; |
517 echo '<fieldset><legend class="screen-reader-text">' . |
|
518 /* translators: Hidden accessibility text. */ |
|
519 __( 'Enable menus' ) . |
|
520 '</legend>'; |
498 |
521 |
499 foreach ( (array) $menu_items as $key => $val ) { |
522 foreach ( (array) $menu_items as $key => $val ) { |
500 echo "<label><input type='checkbox' name='menu_items[" . $key . "]' value='1'" . ( isset( $menu_perms[ $key ] ) ? checked( $menu_perms[ $key ], '1', false ) : '' ) . ' /> ' . esc_html( $val ) . '</label><br/>'; |
523 echo "<label><input type='checkbox' name='menu_items[" . $key . "]' value='1'" . ( isset( $menu_perms[ $key ] ) ? checked( $menu_perms[ $key ], '1', false ) : '' ) . ' /> ' . esc_html( $val ) . '</label><br/>'; |
501 } |
524 } |
502 |
525 |