Changeset 34021 for trunk/src/wp-admin/user-new.php
- Timestamp:
- 09/10/2015 09:32:46 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/user-new.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/user-new.php
r33988 r34021 27 27 28 28 if ( is_multisite() ) { 29 /**30 *31 * @param string $text32 * @return string33 */34 function admin_created_user_email( $text ) {35 $roles = get_editable_roles();36 $role = $roles[ $_REQUEST['role'] ];37 /* translators: 1: Site name, 2: site URL, 3: role */38 return sprintf( __( 'Hi,39 You\'ve been invited to join \'%1$s\' at40 %2$s with the role of %3$s.41 If you do not want to join this site please ignore42 this email. This invitation will expire in a few days.43 44 Please click the following link to activate your user account:45 %%s' ), get_bloginfo( 'name' ), home_url(), wp_specialchars_decode( translate_user_role( $role['name'] ) ) );46 }47 29 add_filter( 'wpmu_signup_user_notification_email', 'admin_created_user_email' ); 48 30 }
Note: See TracChangeset
for help on using the changeset viewer.