Changeset 16527 for trunk/wp-admin/user-new.php
- Timestamp:
- 11/21/2010 04:56:08 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/user-new.php
r16518 r16527 16 16 function admin_created_user_email( $text ) { 17 17 /* translators: 1: Site name, 2: site URL, 3: role */ 18 return sprintf( __( "Hi,19 You 've been invited to join '%1$s' at18 return sprintf( __( 'Hi, 19 You\'ve been invited to join \'%1$s\' at 20 20 %2$s as a %3$s. 21 21 If you do not want to join this site please ignore … … 23 23 24 24 Please click the following link to activate your user account: 25 %%s "), get_bloginfo('name'), site_url(), esc_html( $_REQUEST[ 'role' ] ) );25 %%s' ), get_bloginfo('name'), site_url(), esc_html( $_REQUEST[ 'role' ] ) ); 26 26 } 27 27 add_filter( 'wpmu_signup_user_notification_email', 'admin_created_user_email' ); … … 109 109 } 110 110 wpmu_signup_user( $new_user_login, $_REQUEST[ 'email' ], array( 'add_to_blog' => $wpdb->blogid, 'new_role' => $_REQUEST[ 'role' ] ) ); 111 if ( isset( $_POST[ ' noconfirmation' ] ) && is_super_admin() ) {111 if ( isset( $_POST[ 'adduser' ] ) && isset( $_POST[ 'noconfirmation' ] ) && is_super_admin() ) { 112 112 $key = $wpdb->get_var( $wpdb->prepare( "SELECT activation_key FROM {$wpdb->signups} WHERE user_login = %s AND user_email = %s", $new_user_login, $_REQUEST[ 'email' ] ) ); 113 113 wpmu_activate_signup( $key );
Note: See TracChangeset
for help on using the changeset viewer.