Plugin Directory

Changeset 1998592


Ignore:
Timestamp:
12/20/2018 08:00:43 AM (7 years ago)
Author:
mechter
Message:

updated snippets and example in readme

Location:
asyncronous-bbpress-subscriptions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • asyncronous-bbpress-subscriptions/tags/3.4/readme.txt

    r1997836 r1998592  
    5555    $topic_author_user_id = bbp_get_topic_author_id( $topic_id );
    5656    $topic_author_display_name = bbp_get_topic_author_display_name( $topic_id );
    57     $topic_title = strip_tags( bbp_get_topic_title( $topic_id ) );
    58     $topic_content = strip_tags( bbp_get_topic_content( $topic_id ) );
     57    $topic_title = wp_specialchars_decode( strip_tags( bbp_get_topic_title( $topic_id ) ), ENT_QUOTES );
     58    $topic_content = wp_specialchars_decode( strip_tags( bbp_get_topic_content( $topic_id ) ), ENT_QUOTES );
    5959    $topic_url = get_permalink( $topic_id );
    6060
     
    7171        $blog_name = get_bloginfo( 'name' );
    7272        $topic_author_display_name = bbp_get_topic_author_display_name( $topic_id );
    73         $topic_title = strip_tags( bbp_get_topic_title( $topic_id ) );
     73        $topic_title = wp_specialchars_decode( strip_tags( bbp_get_topic_title( $topic_id ) ), ENT_QUOTES );
    7474        return "[$blog_name] $topic_author_display_name created a new topic: $topic_title";
    7575    }, 10, 3); // first is priority (10 is default and just fine), second is number of arguments your filter expects
  • asyncronous-bbpress-subscriptions/trunk/readme.txt

    r1997836 r1998592  
    5555    $topic_author_user_id = bbp_get_topic_author_id( $topic_id );
    5656    $topic_author_display_name = bbp_get_topic_author_display_name( $topic_id );
    57     $topic_title = strip_tags( bbp_get_topic_title( $topic_id ) );
    58     $topic_content = strip_tags( bbp_get_topic_content( $topic_id ) );
     57    $topic_title = wp_specialchars_decode( strip_tags( bbp_get_topic_title( $topic_id ) ), ENT_QUOTES );
     58    $topic_content = wp_specialchars_decode( strip_tags( bbp_get_topic_content( $topic_id ) ), ENT_QUOTES );
    5959    $topic_url = get_permalink( $topic_id );
    6060
     
    7171        $blog_name = get_bloginfo( 'name' );
    7272        $topic_author_display_name = bbp_get_topic_author_display_name( $topic_id );
    73         $topic_title = strip_tags( bbp_get_topic_title( $topic_id ) );
     73        $topic_title = wp_specialchars_decode( strip_tags( bbp_get_topic_title( $topic_id ) ), ENT_QUOTES );
    7474        return "[$blog_name] $topic_author_display_name created a new topic: $topic_title";
    7575    }, 10, 3); // first is priority (10 is default and just fine), second is number of arguments your filter expects
Note: See TracChangeset for help on using the changeset viewer.