Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/10/2012 09:55:56 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Revert r6587:

  • Introduce bp_get_email_subject() function, to handle formatting of email subjects.
  • For all components with notifications, including deprecated files.
  • Fixes #4401, better this time.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-friends/bp-friends-notifications.php

    r6587 r6589  
    2929    // Set up and send the message
    3030    $to       = $ud->user_email;
    31     $sitename = bp_get_option( 'blogname', 'WordPress' );
    32     $subject  = '[' . $sitename . '] ' . sprintf( __( 'New friendship request from %s', 'buddypress' ), $initiator_name );
    33 
    34     $message = sprintf( __(
     31    $subject  = bp_get_email_subject( array( 'text' => sprintf( __( 'New friendship request from %s', 'buddypress' ), $initiator_name ) ) );
     32    $message  = sprintf( __(
    3533'%1$s wants to add you as a friend.
    3634
     
    6866    // Set up and send the message
    6967    $to       = $ud->user_email;
    70     $sitename = bp_get_option( 'blogname', 'WordPress' );
    71     $subject  = '[' . $sitename . '] ' . sprintf( __( '%s accepted your friendship request', 'buddypress' ), $friend_name );
    72 
    73     $message = sprintf( __(
     68    $subject  = bp_get_email_subject( array( 'text' => sprintf( __( '%s accepted your friendship request', 'buddypress' ), $friend_name ) ) );
     69    $message  = sprintf( __(
    7470'%1$s accepted your friend request.
    7571
Note: See TracChangeset for help on using the changeset viewer.