WordPress.org

Make WordPress Core

Ticket #19090: 19090.2.patch

File 19090.2.patch, 1.1 KB (added by SergeyBiryukov, 9 years ago)
  • wp-admin/user-new.php

     
    7272                } else {
    7373                        $newuser_key = substr( md5( $user_id ), 0, 5 );
    7474                        add_option( 'new_user_' . $newuser_key, array( 'user_id' => $user_id, 'email' => $user_details->user_email, 'role' => $_REQUEST[ 'role' ] ) );
    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");
     75                        /* translators: 1: Site name, 2: site URL, 3: role, 4: activation URL */
     76                        $message = __( 'Hi,
     77You\'ve been invited to join \'%1$s\' at
     78%2$s with the role of %3$s.
     79
     80Please click the following link to confirm the invite:
     81%4$s' );
    7682                        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/")));
    7783                        $redirect = add_query_arg( array('update' => 'add'), 'user-new.php' );
    7884                }