Skip to:
Content

BuddyPress.org

Changeset 5445


Ignore:
Timestamp:
12/05/2011 07:12:44 PM (13 years ago)
Author:
djpaul
Message:

Make sure that all emails' contents have argument swapping for i18n placeholder variables. Fixes #3795

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-filters.php

    r5353 r5445  
    235235    $from_name       = ( '' == get_site_option( 'site_name' ) ) ? 'WordPress' : esc_html( get_site_option( 'site_name' ) );
    236236    $message_headers = "MIME-Version: 1.0\n" . "From: \"{$from_name}\" <{$admin_email}>\n" . "Content-Type: text/plain; charset=\"" . get_option( 'blog_charset' ) . "\"\n";
    237     $message         = sprintf( __( "Thanks for registering! To complete the activation of your account please click the following link:\n\n%s\n\n", 'buddypress' ), $activate_url . $email );
     237    $message         = sprintf( __( "Thanks for registering! To complete the activation of your account please click the following link:\n\n%1\$s\n\n", 'buddypress' ), $activate_url . $email );
    238238    $subject         = '[' . $from_name . '] ' . __( 'Activate Your Account', 'buddypress' );
    239239
  • trunk/bp-members/bp-members-signup.php

    r5443 r5445  
    569569    $from_name = ( '' == get_option( 'blogname' ) ) ? __( 'BuddyPress', 'buddypress' ) : esc_html( get_option( 'blogname' ) );
    570570
    571     $message = sprintf( __( "Thanks for registering! To complete the activation of your account please click the following link:\n\n%s\n\n", 'buddypress' ), $activate_url );
     571    $message = sprintf( __( "Thanks for registering! To complete the activation of your account please click the following link:\n\n%1\$s\n\n", 'buddypress' ), $activate_url );
    572572    $subject = '[' . $from_name . '] ' . __( 'Activate Your Account', 'buddypress' );
    573573
  • trunk/bp-messages/bp-messages-notifications.php

    r5296 r5445  
    3232
    3333        $email_content = sprintf( __(
    34 '%s sent you a new message:
     34'%1$s sent you a new message:
    3535
    36 Subject: %s
     36Subject: %2$s
    3737
    38 "%s"
     38"%3$s"
    3939
    40 To view and read your messages please log in and visit: %s
     40To view and read your messages please log in and visit: %4$s
    4141
    4242---------------------
Note: See TracChangeset for help on using the changeset viewer.