wp/wp-admin/network/settings.php
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 19 3d72ae0968f4
--- a/wp/wp-admin/network/settings.php	Tue Dec 15 15:52:01 2020 +0100
+++ b/wp/wp-admin/network/settings.php	Wed Sep 21 18:19:35 2022 +0200
@@ -60,7 +60,7 @@
 
 get_current_screen()->set_help_sidebar(
 	'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
-	'<p>' . __( '<a href="https://codex.wordpress.org/Network_Admin_Settings_Screen">Documentation on Network Settings</a>' ) . '</p>' .
+	'<p>' . __( '<a href="https://wordpress.org/support/article/network-admin-settings-screen/">Documentation on Network Settings</a>' ) . '</p>' .
 	'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
 );
 
@@ -242,7 +242,16 @@
 			<tr>
 				<th scope="row"><label for="illegal_names"><?php _e( 'Banned Names' ); ?></label></th>
 				<td>
-					<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" />
+					<?php
+					$illegal_names = get_site_option( 'illegal_names' );
+
+					if ( empty( $illegal_names ) ) {
+						$illegal_names = '';
+					} elseif ( is_array( $illegal_names ) ) {
+						$illegal_names = implode( ' ', $illegal_names );
+					}
+					?>
+					<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" />
 					<p class="description" id="illegal-names-desc">
 						<?php _e( 'Users are not allowed to register these sites. Separate names by spaces.' ); ?>
 					</p>
@@ -254,10 +263,16 @@
 				<td>
 					<?php
 					$limited_email_domains = get_site_option( 'limited_email_domains' );
-					$limited_email_domains = str_replace( ' ', "\n", $limited_email_domains );
 
-					if ( $limited_email_domains ) {
-						$limited_email_domains = implode( "\n", (array) $limited_email_domains );
+					if ( empty( $limited_email_domains ) ) {
+						$limited_email_domains = '';
+					} else {
+						// Convert from an input field. Back-compat for WPMU < 1.0.
+						$limited_email_domains = str_replace( ' ', "\n", $limited_email_domains );
+
+						if ( is_array( $limited_email_domains ) ) {
+							$limited_email_domains = implode( "\n", $limited_email_domains );
+						}
 					}
 					?>
 					<textarea name="limited_email_domains" id="limited_email_domains" aria-describedby="limited-email-domains-desc" cols="45" rows="5">
@@ -274,8 +289,10 @@
 					<?php
 					$banned_email_domains = get_site_option( 'banned_email_domains' );
 
-					if ( $banned_email_domains ) {
-						$banned_email_domains = implode( "\n", (array) $banned_email_domains );
+					if ( empty( $banned_email_domains ) ) {
+						$banned_email_domains = '';
+					} elseif ( is_array( $banned_email_domains ) ) {
+						$banned_email_domains = implode( "\n", $banned_email_domains );
 					}
 					?>
 					<textarea name="banned_email_domains" id="banned_email_domains" aria-describedby="banned-email-domains-desc" cols="45" rows="5">
@@ -423,7 +440,7 @@
 			<h2><?php _e( 'Language Settings' ); ?></h2>
 			<table class="form-table" role="presentation">
 				<tr>
-					<th><label for="WPLANG"><?php _e( 'Default Language' ); ?></label></th>
+					<th><label for="WPLANG"><?php _e( 'Default Language' ); ?><span class="dashicons dashicons-translation" aria-hidden="true"></span></label></th>
 					<td>
 						<?php
 						$lang = get_site_option( 'WPLANG' );