X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/bf5c68485ef07868ad0a91168ecd0092af7661ae..8f374b7233bc2815ccc387e448d208c5434eb961:/wp-admin/network/settings.php diff --git a/wp-admin/network/settings.php b/wp-admin/network/settings.php index 7f04e1a5..e75d95fc 100644 --- a/wp-admin/network/settings.php +++ b/wp-admin/network/settings.php @@ -29,7 +29,6 @@ get_current_screen()->add_help_tab( array( '

' . __('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.') . '

' . '

' . __('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.') . '

' . '

' . __('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).') . '

' . - '

' . __('Checkboxes for media upload buttons set which are shown in the visual editor. If unchecked, a generic upload button is still visible; other media types can still be uploaded if on the allowed file types list.') . '

' . '

' . __('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.') . '

' . '

' . __('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.') . '

' ) ); @@ -51,17 +50,17 @@ if ( $_POST ) { if ( is_email( $_POST['admin_email'] ) ) update_site_option( 'admin_email', $_POST['admin_email'] ); - $illegal_names = split( ' ', $_POST['illegal_names'] ); + $illegal_names = explode( ' ', $_POST['illegal_names'] ); foreach ( (array) $illegal_names as $name ) { $name = trim( $name ); if ( $name != '' ) $names[] = trim( $name ); - } + } update_site_option( 'illegal_names', $names ); if ( $_POST['limited_email_domains'] != '' ) { $limited_email_domains = str_replace( ' ', "\n", $_POST['limited_email_domains'] ); - $limited_email_domains = split( "\n", stripslashes( $limited_email_domains ) ); + $limited_email_domains = explode( "\n", stripslashes( $limited_email_domains ) ); $limited_email = array(); foreach ( (array) $limited_email_domains as $domain ) { $domain = trim( $domain ); @@ -70,11 +69,11 @@ if ( $_POST ) { } update_site_option( 'limited_email_domains', $limited_email ); } else { - update_site_option( 'limited_email_domains', '' ); + update_site_option( 'limited_email_domains', '' ); } if ( $_POST['banned_email_domains'] != '' ) { - $banned_email_domains = split( "\n", stripslashes( $_POST['banned_email_domains'] ) ); + $banned_email_domains = explode( "\n", stripslashes( $_POST['banned_email_domains'] ) ); $banned = array(); foreach ( (array) $banned_email_domains as $domain ) { $domain = trim( $domain ); @@ -125,7 +124,7 @@ if ( isset( $_GET['updated'] ) ) {
- + @@ -278,7 +277,7 @@ if ( isset( $_GET['updated'] ) ) { -