Changeset 14070 for trunk/wp-includes/ms-functions.php
- Timestamp:
- 04/11/2010 10:41:54 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/ms-functions.php
r14055 r14070 323 323 // Check if the domain has been used already. We should return an error message. 324 324 if ( domain_exists($domain, $path, $site_id) ) 325 return __( 'error: Blog URL already taken.');325 return __( 'Error: Blog URL already taken.' ); 326 326 327 327 // Need to backup wpdb table names, and create a new wp_blogs entry for new blog. … … 330 330 331 331 if ( ! $blog_id = insert_blog($domain, $path, $site_id) ) 332 return __( 'error: problem creating blog entry');332 return __( 'Error: problem creating blog entry.' ); 333 333 334 334 switch_to_blog($blog_id); … … 484 484 485 485 if ( strpos( " " . $user_name, "_" ) != false ) 486 $errors->add( 'user_name', __("Sorry, usernames may not contain the character '_'!"));486 $errors->add( 'user_name', __( 'Sorry, usernames may not contain the character “_”!' ) ); 487 487 488 488 // all numeric? … … 569 569 570 570 if ( strpos( " " . $blogname, "_" ) != false ) 571 $errors->add( 'blogname', __("Sorry, blog names may not contain the character '_'!"));571 $errors->add( 'blogname', __( 'Sorry, blog names may not contain the character “_”!' ) ); 572 572 573 573 // do not allow users to create a blog that conflicts with a page on the main blog. 574 574 if ( !is_subdomain_install() && $wpdb->get_var( $wpdb->prepare( "SELECT post_name FROM " . $wpdb->get_blog_prefix( $current_site->blog_id ) . "posts WHERE post_type = 'page' AND post_name = %s", $blogname ) ) ) 575 $errors->add( 'blogname', __( "Sorry, you may not use that blog name") );575 $errors->add( 'blogname', __( 'Sorry, you may not use that blog name.' ) ); 576 576 577 577 // all numeric? … … 1154 1154 if ( ($spaceAllowed-$size) < 0 ) { 1155 1155 if ( $echo ) 1156 _e( "Sorry, you have used your space allocation. Please delete some files to upload more files." ); //No space left1156 _e( 'Sorry, you have used your space allocation. Please delete some files to upload more files.' ); // No space left 1157 1157 return true; 1158 1158 } else {
Note: See TracChangeset
for help on using the changeset viewer.