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-activity/bp-activity-notifications.php

    r6587 r6589  
    7171        $ud       = bp_core_get_core_userdata( $receiver_user_id );
    7272        $to       = $ud->user_email;
    73         $sitename = bp_get_option( 'blogname', 'WordPress' );
    74         $subject  = '[' . $sitename . '] ' . sprintf( __( '%s mentioned you in an update', 'buddypress' ), $poster_name );
     73        $subject  = bp_get_email_subject( array( 'text' => sprintf( __( '%s mentioned you in an update', 'buddypress' ), $poster_name ) ) );
    7574
    7675        if ( bp_is_active( 'groups' ) && bp_is_group() ) {
     
    158157
    159158        // Set up and send the message
    160         $ud       = bp_core_get_core_userdata( $original_activity->user_id );
    161         $to       = $ud->user_email;
    162         $sitename = bp_get_option( 'blogname', 'WordPress' );
    163         $subject = '[' . $sitename . '] ' . sprintf( __( '%s replied to one of your updates', 'buddypress' ), $poster_name );
    164 
    165 $message = sprintf( __(
     159        $ud      = bp_core_get_core_userdata( $original_activity->user_id );
     160        $to      = $ud->user_email;
     161        $subject = bp_get_email_subject( array( 'text' => sprintf( __( '%s replied to one of your updates', 'buddypress' ), $poster_name ) ) );
     162        $message = sprintf( __(
    166163'%1$s replied to one of your updates:
    167164
     
    203200        $ud       = bp_core_get_core_userdata( $parent_comment->user_id );
    204201        $to       = $ud->user_email;
    205         $sitename = bp_get_option( 'blogname', 'WordPress' );
    206         $subject = '[' . $sitename . '] ' . sprintf( __( '%s replied to one of your comments', 'buddypress' ), $poster_name );
     202        $subject = bp_get_email_subject( array( 'text' => sprintf( __( '%s replied to one of your comments', 'buddypress' ), $poster_name ) ) );
    207203
    208204        $poster_name = stripslashes( $poster_name );
Note: See TracChangeset for help on using the changeset viewer.