Make WordPress Core

Changeset 19255


Ignore:
Timestamp:
11/11/2011 06:37:04 PM (13 years ago)
Author:
ryan
Message:

Used numbered format specifiers. Add translator note. Props SergeyBiryukov. fixes #19090

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/user-new.php

    r19119 r19255  
    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,
     77
     78You\'ve been invited to join \'%1$s\' at
     79%2$s with the role of %3$s.
     80
     81Please click the following link to confirm the invite:
     82%4$s' );
    7683            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/")));
    7784            $redirect = add_query_arg( array('update' => 'add'), 'user-new.php' );
Note: See TracChangeset for help on using the changeset viewer.