Skip to:
Content

BuddyPress.org

Changeset 3614


Ignore:
Timestamp:
12/30/2010 03:57:44 PM (14 years ago)
Author:
boonebgorges
Message:

Replaces sprintf double quotes with single quotes to avoid substitution problems. Fixes #2983

Location:
trunk
Files:
4 edited

Legend:

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

    r3592 r3614  
    231231    $from_name = ( '' == get_site_option( "site_name" ) ) ? 'WordPress' : esc_html( get_site_option( "site_name" ) );
    232232    $message_headers = "MIME-Version: 1.0\n" . "From: \"{$from_name}\" <{$admin_email}>\n" . "Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n";
    233     $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, esc_url( "http://{$domain}{$path}" ) );
     233    $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, esc_url( "http://{$domain}{$path}" ) );
    234234    $subject = '[' . $from_name . '] ' . __( 'Activate Your Account', 'buddypress' );
    235235
  • trunk/bp-core/bp-core-signup.php

    r3592 r3614  
    626626    $from_name = ( '' == get_option( 'blogname' ) ) ? 'BuddyPress' : esc_html( get_option( 'blogname' ) );
    627627    $message_headers = "MIME-Version: 1.0\n" . "From: \"{$from_name}\" <{$admin_email}>\n" . "Content-Type: text/plain; charset=\"" . get_option( 'blog_charset' ) . "\"\n";
    628     $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 );
     628    $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 );
    629629    $subject = '[' . $from_name . '] ' . __( 'Activate Your Account', 'buddypress' );
    630630
  • trunk/bp-friends/bp-friends-notifications.php

    r3592 r3614  
    2323
    2424    $message = sprintf( __(
    25 "%1$s wants to add you as a friend.
     25'%1$s wants to add you as a friend.
    2626
    2727To view all of your pending friendship requests: %2$s
    2828
    29 To view %3$s's profile: %4$s
     29To view %3$s\'s profile: %4$s
    3030
    3131---------------------
    32 ", 'buddypress' ), $initiator_name, $all_requests_link, $initiator_name, $initiator_link );
     32', 'buddypress' ), $initiator_name, $all_requests_link, $initiator_name, $initiator_link );
    3333
    3434    $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link );
    35 
     35   
    3636    /* Send the message */
    3737    $to = apply_filters( 'friends_notification_new_request_to', $to );
  • trunk/bp-themes/bp-default/functions.php

    r3605 r3614  
    132132
    133133    if ( !empty( $bp->displayed_user->id ) )
    134         $params['mention_explain'] = sprintf( __( "%s is a unique identifier for %s that you can type into any message on this site. %s will be sent a notification and a link to your message any time you use it.", 'buddypress' ), '@' . bp_get_displayed_user_username(), bp_get_user_firstname( bp_get_displayed_user_fullname() ), bp_get_user_firstname( bp_get_displayed_user_fullname() ) );
     134        $params['mention_explain'] = sprintf( __( '%s is a unique identifier for %s that you can type into any message on this site. %s will be sent a notification and a link to your message any time you use it.', 'buddypress' ), '@' . bp_get_displayed_user_username(), bp_get_user_firstname( bp_get_displayed_user_fullname() ), bp_get_user_firstname( bp_get_displayed_user_fullname() ) );
    135135
    136136    wp_localize_script( 'dtheme-ajax-js', 'BP_DTheme', $params );
Note: See TracChangeset for help on using the changeset viewer.