Skip to:
Content

bbPress.org

Ticket #3256: 3256.patch

File 3256.patch, 2.1 KB (added by johnjamesjacoby, 7 months ago)

Try wp_specialchars_decode() on author names

  • src/includes/common/functions.php

     
    10901090        bbp_remove_all_filters( 'the_title'             );
    10911091
    10921092        // Strip tags from text and setup mail data
    1093         $blog_name     = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
    1094         $topic_title   = wp_specialchars_decode( strip_tags( bbp_get_topic_title( $topic_id ) ), ENT_QUOTES );
    1095         $reply_content = wp_specialchars_decode( strip_tags( bbp_get_reply_content( $reply_id ) ), ENT_QUOTES );
    1096         $reply_url     = bbp_get_reply_url( $reply_id );
     1093        $blog_name         = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
     1094        $topic_title       = wp_specialchars_decode( strip_tags( bbp_get_topic_title( $topic_id ) ), ENT_QUOTES );
     1095        $reply_author_name = wp_specialchars_decode( strip_tags( $reply_author_name ), ENT_QUOTES );
     1096        $reply_content     = wp_specialchars_decode( strip_tags( bbp_get_reply_content( $reply_id ) ), ENT_QUOTES );
     1097        $reply_url         = bbp_get_reply_url( $reply_id );
    10971098
    10981099        // For plugins to filter messages per reply/topic/user
    10991100        $message = sprintf( esc_html__( '%1$s wrote:
     
    12511252        bbp_remove_all_filters( 'the_title'             );
    12521253
    12531254        // Strip tags from text and setup mail data
    1254         $blog_name     = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
    1255         $topic_title   = wp_specialchars_decode( strip_tags( bbp_get_topic_title( $topic_id ) ), ENT_QUOTES );
    1256         $topic_content = wp_specialchars_decode( strip_tags( bbp_get_topic_content( $topic_id ) ), ENT_QUOTES );
    1257         $topic_url     = get_permalink( $topic_id );
     1255        $blog_name         = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
     1256        $topic_title       = wp_specialchars_decode( strip_tags( bbp_get_topic_title( $topic_id ) ), ENT_QUOTES );
     1257        $topic_author_name = wp_specialchars_decode( strip_tags( $topic_author_name ), ENT_QUOTES );
     1258        $topic_content     = wp_specialchars_decode( strip_tags( bbp_get_topic_content( $topic_id ) ), ENT_QUOTES );
     1259        $topic_url         = get_permalink( $topic_id );
    12581260
    12591261        // For plugins to filter messages per reply/topic/user
    12601262        $message = sprintf( esc_html__( '%1$s wrote: