Skip to:
Content

bbPress.org


Ignore:
Timestamp:
12/20/2012 12:59:10 PM (11 years ago)
Author:
johnjamesjacoby
Message:

Add forum specific kses allowed tags to common component. Tweak topic and reply content filters to use these new kses functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/core/filters.php

    r4522 r4604  
    9595add_filter( 'bbp_new_reply_pre_content',  'balanceTags'     );
    9696add_filter( 'bbp_new_reply_pre_content',  'wp_rel_nofollow' );
    97 add_filter( 'bbp_new_reply_pre_content',  'wp_filter_kses' );
     97add_filter( 'bbp_new_reply_pre_content',  'bbp_filter_kses' );
    9898add_filter( 'bbp_new_topic_pre_content',  'balanceTags'     );
    9999add_filter( 'bbp_new_topic_pre_content',  'wp_rel_nofollow' );
    100 add_filter( 'bbp_new_topic_pre_content',  'wp_filter_kses' );
     100add_filter( 'bbp_new_topic_pre_content',  'bbp_filter_kses' );
    101101add_filter( 'bbp_edit_reply_pre_content', 'balanceTags'     );
    102102add_filter( 'bbp_edit_reply_pre_content', 'wp_rel_nofollow' );
    103 add_filter( 'bbp_edit_reply_pre_content', 'wp_filter_kses' );
     103add_filter( 'bbp_edit_reply_pre_content', 'bbp_filter_kses' );
    104104add_filter( 'bbp_edit_topic_pre_content', 'balanceTags'     );
    105105add_filter( 'bbp_edit_topic_pre_content', 'wp_rel_nofollow' );
    106 add_filter( 'bbp_edit_topic_pre_content', 'wp_filter_kses' );
     106add_filter( 'bbp_edit_topic_pre_content', 'bbp_filter_kses' );
    107107
    108108// No follow and stripslashes on user profile links
     
    154154// Run wp_kses_data on topic/reply content in admin section
    155155if ( is_admin() ) {
    156     add_filter( 'bbp_get_reply_content', 'wp_kses_data' );
    157     add_filter( 'bbp_get_topic_content', 'wp_kses_data' );
     156    add_filter( 'bbp_get_reply_content', 'bbp_kses_data' );
     157    add_filter( 'bbp_get_topic_content', 'bbp_kses_data' );
    158158
    159159// Revisions (only when not in admin)
Note: See TracChangeset for help on using the changeset viewer.