Changeset 13379 for trunk/wp-admin/ms-edit.php
- Timestamp:
- 02/24/2010 07:56:10 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/ms-edit.php
r13311 r13379 142 142 143 143 if ( is_array( $_POST[ 'blog' ] ) == false ) 144 wp_die( "Can't create an empty blog." );144 wp_die( "Can't create an empty site." ); 145 145 $blog = $_POST['blog']; 146 146 $domain = sanitize_user( str_replace( '/', '', $blog[ 'domain' ] ) ); … … 149 149 150 150 if ( empty($domain) || empty($email) ) 151 wp_die( __('Missing blogaddress or email address.') );151 wp_die( __('Missing site address or email address.') ); 152 152 if ( !is_email( $email ) ) 153 153 wp_die( __('Invalid email address') ); … … 179 179 if ( get_user_option( 'primary_blog', $user_id ) == $dashboard_blog->blog_id ) 180 180 update_user_option( $user_id, 'primary_blog', $id, true ); 181 $content_mail = sprintf( __( "New blogcreated by %1s\n\nAddress: http://%2s\nName: %3s"), $current_user->user_login , $newdomain.$path, stripslashes( $title ) );182 wp_mail( get_site_option('admin_email'), sprintf(__('[%s] New BlogCreated'), $current_site->site_name), $content_mail, 'From: "Site Admin" <' . get_site_option( 'admin_email' ) . '>' );181 $content_mail = sprintf( __( "New site created by %1s\n\nAddress: http://%2s\nName: %3s"), $current_user->user_login , $newdomain.$path, stripslashes( $title ) ); 182 wp_mail( get_site_option('admin_email'), sprintf(__('[%s] New Site Created'), $current_site->site_name), $content_mail, 'From: "Site Admin" <' . get_site_option( 'admin_email' ) . '>' ); 183 183 wpmu_welcome_notification( $id, $user_id, $password, $title, array( "public" => 1 ) ); 184 184 wp_redirect( add_query_arg( array('updated' => 'true', 'action' => 'add-blog'), $_SERVER['HTTP_REFERER'] ) ); … … 440 440 <html xmlns="http://www.w3.org/1999/xhtml" <?php if ( function_exists('language_attributes') ) language_attributes(); ?>> 441 441 <head> 442 <title><?php _e("WordPress MU› Confirm your action"); ?></title>442 <title><?php _e("WordPress › Confirm your action"); ?></title> 443 443 444 444 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> … … 499 499 $user = new WP_User( $val ); 500 500 if ( in_array( $user->user_login, get_site_option( 'site_admins', array( 'admin' ) ) ) ) 501 wp_die( sprintf( __( 'Warning! User cannot be modified. The user %s is a siteadmnistrator.' ), $user->user_login ) );501 wp_die( sprintf( __( 'Warning! User cannot be modified. The user %s is a network admnistrator.' ), $user->user_login ) ); 502 502 if ( isset($_POST['alluser_spam']) ) { 503 503 $userfunction = 'all_spam';
Note: See TracChangeset
for help on using the changeset viewer.