Changeset 26120 for trunk/src/wp-signup.php
- Timestamp:
- 11/13/2013 03:22:48 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-signup.php
r25868 r26120 88 88 * @param array $errors 89 89 */ 90 function show_blog_form( $blogname = '', $blog_title = '', $errors = '') {91 global $current_site;90 function show_blog_form( $blogname = '', $blog_title = '', $errors = '' ) { 91 $current_site = get_current_site(); 92 92 // Blog name 93 93 if ( !is_subdomain_install() ) … … 226 226 * @param array $errors 227 227 */ 228 function signup_another_blog($blogname = '', $blog_title = '', $errors = '') { 229 global $current_site; 228 function signup_another_blog( $blogname = '', $blog_title = '', $errors = '' ) { 230 229 $current_user = wp_get_current_user(); 231 230 … … 259 258 $errors = $filtered_results['errors']; 260 259 261 echo '<h2>' . sprintf( __( 'Get <em>another</em> %s site in seconds' ), $current_site->site_name ) . '</h2>';260 echo '<h2>' . sprintf( __( 'Get <em>another</em> %s site in seconds' ), get_current_site()->site_name ) . '</h2>'; 262 261 263 262 if ( $errors->get_error_code() ) { … … 396 395 * @param array $errors 397 396 */ 398 function signup_user( $user_name = '', $user_email = '', $errors = '') {399 global $ current_site, $active_signup;397 function signup_user( $user_name = '', $user_email = '', $errors = '' ) { 398 global $active_signup; 400 399 401 400 if ( !is_wp_error($errors) ) … … 430 429 ?> 431 430 432 <h2><?php printf( __( 'Get your own %s account in seconds' ), $current_site->site_name ) ?></h2>431 <h2><?php printf( __( 'Get your own %s account in seconds' ), get_current_site()->site_name ) ?></h2> 433 432 <form id="setupform" method="post" action="wp-signup.php"> 434 433 <input type="hidden" name="stage" value="validate-user-signup" />
Note: See TracChangeset
for help on using the changeset viewer.