Skip to:
Content

bbPress.org

Ticket #1472: bb_notify.diff

File bb_notify.diff, 1.3 KB (added by westi, 12 years ago)

Improved version of hanni's patch minus the minor bugs

  • bb-includes/functions.bb-posts.php

     
    660660               
    661661                $user = bb_get_user( $user_id );
    662662               
    663                 if ( !$message = apply_filters( 'bb_subscription_mail_message', __( "%1\$s wrote:\n\n%2\$s\n\nPost Link: %3\$s\n\nYou're getting this mail because you subscribed to the topic, visit the topic and login to unsubscribe." ), $post_id, $topic_id ) )
     663        if ( !$message = apply_filters( 'bb_subscription_mail_message', __( "%1\$s wrote:\n\n%2\$s\n\nRead this post on the forums: %3\$s\n\nYou're getting this email because you subscribed to '%4\$s.'\nPlease click the link above, login, and click ÒUnsubscribeÓ at the top of the page to stop receiving emails from this topic." ), $post_id, $topic_id ) )
    664664                        continue; /* For plugins */
    665665               
    666666                bb_mail(
    667667                        $user->user_email,
    668668                        apply_filters( 'bb_subscription_mail_title', '[' . bb_get_option( 'name' ) . '] ' . $topic->topic_title, $post_id, $topic_id ),
    669                         sprintf( $message, $poster_name, strip_tags( $post->post_text ), get_post_link( $post_id ) )
     669                        sprintf( $message, $poster_name, strip_tags( $post->post_text ), get_post_link( $post_id ), strip_tags( $topic->topic_title ) )
    670670                );
    671671        }
    672672