Ticket #18293: 18293.patch
| File 18293.patch, 2.4 KB (added by , 15 years ago) |
|---|
-
wp-admin/user-new.php
26 26 this email. This invitation will expire in a few days. 27 27 28 28 Please click the following link to activate your user account: 29 %%s' ), get_bloginfo('name'), site_url(), esc_html( $_REQUEST[ 'role' ] ) );29 %%s' ), get_bloginfo('name'), home_url(), esc_html( $_REQUEST[ 'role' ] ) ); 30 30 } 31 31 add_filter( 'wpmu_signup_user_notification_email', 'admin_created_user_email' ); 32 32 … … 73 73 $newuser_key = substr( md5( $user_id ), 0, 5 ); 74 74 add_option( 'new_user_' . $newuser_key, array( 'user_id' => $user_id, 'email' => $user_details->user_email, 'role' => $_REQUEST[ 'role' ] ) ); 75 75 $message = __("Hi,\n\nYou have been invited to join '%s' at\n%s with the role of %s.\nPlease click the following link to confirm the invite:\n%s\n"); 76 wp_mail( $new_user_email, sprintf( __( '[%s] Joining confirmation' ), get_option( 'blogname' ) ), sprintf($message, get_option('blogname'), site_url(), $_REQUEST[ 'role' ], site_url("/newbloguser/$newuser_key/")));76 wp_mail( $new_user_email, sprintf( __( '[%s] Joining confirmation' ), get_option( 'blogname' ) ), sprintf($message, get_option('blogname'), home_url(), $_REQUEST[ 'role' ], home_url("/newbloguser/$newuser_key/"))); 77 77 $redirect = add_query_arg( array('update' => 'add'), 'user-new.php' ); 78 78 } 79 79 } -
wp-includes/ms-functions.php
1826 1826 delete_option( 'new_user_' . $key ); 1827 1827 1828 1828 if ( empty( $details ) || is_wp_error( add_existing_user_to_blog( $details ) ) ) 1829 wp_die( sprintf(__('An error occurred adding you to this site. Back to the <a href="%s">homepage</a>.'), site_url() ) );1829 wp_die( sprintf(__('An error occurred adding you to this site. Back to the <a href="%s">homepage</a>.'), home_url() ) ); 1830 1830 1831 wp_die( sprintf(__('You have been added to this site. Please visit the <a href="%s">homepage</a> or <a href="%s">log in</a> using your username and password.'), site_url(), admin_url() ), __('Success') );1831 wp_die( sprintf(__('You have been added to this site. Please visit the <a href="%s">homepage</a> or <a href="%s">log in</a> using your username and password.'), home_url(), admin_url() ), __('Success') ); 1832 1832 } 1833 1833 1834 1834 /**