equal
deleted
inserted
replaced
58 ) |
58 ) |
59 ); |
59 ); |
60 |
60 |
61 get_current_screen()->set_help_sidebar( |
61 get_current_screen()->set_help_sidebar( |
62 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
62 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
63 '<p>' . __( '<a href="https://codex.wordpress.org/Network_Admin_Settings_Screen">Documentation on Network Settings</a>' ) . '</p>' . |
63 '<p>' . __( '<a href="https://wordpress.org/support/article/network-admin-settings-screen/">Documentation on Network Settings</a>' ) . '</p>' . |
64 '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
64 '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
65 ); |
65 ); |
66 |
66 |
67 if ( $_POST ) { |
67 if ( $_POST ) { |
68 /** This action is documented in wp-admin/network/edit.php */ |
68 /** This action is documented in wp-admin/network/edit.php */ |
240 </tr> |
240 </tr> |
241 |
241 |
242 <tr> |
242 <tr> |
243 <th scope="row"><label for="illegal_names"><?php _e( 'Banned Names' ); ?></label></th> |
243 <th scope="row"><label for="illegal_names"><?php _e( 'Banned Names' ); ?></label></th> |
244 <td> |
244 <td> |
245 <input name="illegal_names" type="text" id="illegal_names" aria-describedby="illegal-names-desc" class="large-text" value="<?php echo esc_attr( implode( ' ', (array) get_site_option( 'illegal_names' ) ) ); ?>" size="45" /> |
245 <?php |
|
246 $illegal_names = get_site_option( 'illegal_names' ); |
|
247 |
|
248 if ( empty( $illegal_names ) ) { |
|
249 $illegal_names = ''; |
|
250 } elseif ( is_array( $illegal_names ) ) { |
|
251 $illegal_names = implode( ' ', $illegal_names ); |
|
252 } |
|
253 ?> |
|
254 <input name="illegal_names" type="text" id="illegal_names" aria-describedby="illegal-names-desc" class="large-text" value="<?php echo esc_attr( $illegal_names ); ?>" size="45" /> |
246 <p class="description" id="illegal-names-desc"> |
255 <p class="description" id="illegal-names-desc"> |
247 <?php _e( 'Users are not allowed to register these sites. Separate names by spaces.' ); ?> |
256 <?php _e( 'Users are not allowed to register these sites. Separate names by spaces.' ); ?> |
248 </p> |
257 </p> |
249 </td> |
258 </td> |
250 </tr> |
259 </tr> |
252 <tr> |
261 <tr> |
253 <th scope="row"><label for="limited_email_domains"><?php _e( 'Limited Email Registrations' ); ?></label></th> |
262 <th scope="row"><label for="limited_email_domains"><?php _e( 'Limited Email Registrations' ); ?></label></th> |
254 <td> |
263 <td> |
255 <?php |
264 <?php |
256 $limited_email_domains = get_site_option( 'limited_email_domains' ); |
265 $limited_email_domains = get_site_option( 'limited_email_domains' ); |
257 $limited_email_domains = str_replace( ' ', "\n", $limited_email_domains ); |
266 |
258 |
267 if ( empty( $limited_email_domains ) ) { |
259 if ( $limited_email_domains ) { |
268 $limited_email_domains = ''; |
260 $limited_email_domains = implode( "\n", (array) $limited_email_domains ); |
269 } else { |
|
270 // Convert from an input field. Back-compat for WPMU < 1.0. |
|
271 $limited_email_domains = str_replace( ' ', "\n", $limited_email_domains ); |
|
272 |
|
273 if ( is_array( $limited_email_domains ) ) { |
|
274 $limited_email_domains = implode( "\n", $limited_email_domains ); |
|
275 } |
261 } |
276 } |
262 ?> |
277 ?> |
263 <textarea name="limited_email_domains" id="limited_email_domains" aria-describedby="limited-email-domains-desc" cols="45" rows="5"> |
278 <textarea name="limited_email_domains" id="limited_email_domains" aria-describedby="limited-email-domains-desc" cols="45" rows="5"> |
264 <?php echo esc_textarea( $limited_email_domains ); ?></textarea> |
279 <?php echo esc_textarea( $limited_email_domains ); ?></textarea> |
265 <p class="description" id="limited-email-domains-desc"> |
280 <p class="description" id="limited-email-domains-desc"> |
272 <th scope="row"><label for="banned_email_domains"><?php _e( 'Banned Email Domains' ); ?></label></th> |
287 <th scope="row"><label for="banned_email_domains"><?php _e( 'Banned Email Domains' ); ?></label></th> |
273 <td> |
288 <td> |
274 <?php |
289 <?php |
275 $banned_email_domains = get_site_option( 'banned_email_domains' ); |
290 $banned_email_domains = get_site_option( 'banned_email_domains' ); |
276 |
291 |
277 if ( $banned_email_domains ) { |
292 if ( empty( $banned_email_domains ) ) { |
278 $banned_email_domains = implode( "\n", (array) $banned_email_domains ); |
293 $banned_email_domains = ''; |
|
294 } elseif ( is_array( $banned_email_domains ) ) { |
|
295 $banned_email_domains = implode( "\n", $banned_email_domains ); |
279 } |
296 } |
280 ?> |
297 ?> |
281 <textarea name="banned_email_domains" id="banned_email_domains" aria-describedby="banned-email-domains-desc" cols="45" rows="5"> |
298 <textarea name="banned_email_domains" id="banned_email_domains" aria-describedby="banned-email-domains-desc" cols="45" rows="5"> |
282 <?php echo esc_textarea( $banned_email_domains ); ?></textarea> |
299 <?php echo esc_textarea( $banned_email_domains ); ?></textarea> |
283 <p class="description" id="banned-email-domains-desc"> |
300 <p class="description" id="banned-email-domains-desc"> |
421 if ( ! empty( $languages ) || ! empty( $translations ) ) { |
438 if ( ! empty( $languages ) || ! empty( $translations ) ) { |
422 ?> |
439 ?> |
423 <h2><?php _e( 'Language Settings' ); ?></h2> |
440 <h2><?php _e( 'Language Settings' ); ?></h2> |
424 <table class="form-table" role="presentation"> |
441 <table class="form-table" role="presentation"> |
425 <tr> |
442 <tr> |
426 <th><label for="WPLANG"><?php _e( 'Default Language' ); ?></label></th> |
443 <th><label for="WPLANG"><?php _e( 'Default Language' ); ?><span class="dashicons dashicons-translation" aria-hidden="true"></span></label></th> |
427 <td> |
444 <td> |
428 <?php |
445 <?php |
429 $lang = get_site_option( 'WPLANG' ); |
446 $lang = get_site_option( 'WPLANG' ); |
430 if ( ! in_array( $lang, $languages, true ) ) { |
447 if ( ! in_array( $lang, $languages, true ) ) { |
431 $lang = ''; |
448 $lang = ''; |