Skip to:
Content

bbPress.org

Changeset 6613


Ignore:
Timestamp:
07/04/2017 04:03:18 PM (2 years ago)
Author:
johnjamesjacoby
Message:

Subscriptions: Strip & decode email titles.

Props thebrandonallen. Fixes #2865.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/common/functions.php

    r6607 r6613  
    10831083    remove_all_filters( 'bbp_get_reply_content' );
    10841084    remove_all_filters( 'bbp_get_topic_title'   );
     1085    remove_all_filters( 'the_title'             );
    10851086
    10861087    // Strip tags from text and setup mail data
    1087     $topic_title   = strip_tags( bbp_get_topic_title( $topic_id ) );
    1088     $reply_content = strip_tags( bbp_get_reply_content( $reply_id ) );
     1088    $blog_name     = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
     1089    $topic_title   = wp_specialchars_decode( strip_tags( bbp_get_topic_title( $topic_id ) ), ENT_QUOTES );
     1090    $reply_content = wp_specialchars_decode( strip_tags( bbp_get_reply_content( $reply_id ) ), ENT_QUOTES );
    10891091    $reply_url     = bbp_get_reply_url( $reply_id );
    1090     $blog_name     = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
    10911092
    10921093    // For plugins to filter messages per reply/topic/user
     
    12301231    remove_all_filters( 'bbp_get_topic_content' );
    12311232    remove_all_filters( 'bbp_get_topic_title'   );
     1233    remove_all_filters( 'the_title'             );
    12321234
    12331235    // Strip tags from text and setup mail data
    1234     $topic_title   = strip_tags( bbp_get_topic_title( $topic_id ) );
    1235     $topic_content = strip_tags( bbp_get_topic_content( $topic_id ) );
     1236    $blog_name     = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
     1237    $topic_title   = wp_specialchars_decode( strip_tags( bbp_get_topic_title( $topic_id ) ), ENT_QUOTES );
     1238    $topic_content = wp_specialchars_decode( strip_tags( bbp_get_topic_content( $topic_id ) ), ENT_QUOTES );
    12361239    $topic_url     = get_permalink( $topic_id );
    1237     $blog_name     = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
    12381240
    12391241    // For plugins to filter messages per reply/topic/user
Note: See TracChangeset for help on using the changeset viewer.