Skip to:
Content

bbPress.org

Changeset 4689


Ignore:
Timestamp:
01/08/2013 03:54:26 PM (9 years ago)
Author:
johnjamesjacoby
Message:

Filter topic and reply content code trick and encoding before priority 10. Fixes third party plugin compat when filtering content. Hattip mordauk.

File:
1 edited

Legend:

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

    r4679 r4689  
    158158add_filter( 'bbp_edit_topic_pre_content', 'bbp_code_trick_reverse' );
    159159
    160 // Code filters on output
    161 add_filter( 'bbp_get_reply_content', 'bbp_code_trick' );
    162 add_filter( 'bbp_get_reply_content', 'bbp_encode_bad' );
    163 add_filter( 'bbp_get_topic_content', 'bbp_code_trick' );
    164 add_filter( 'bbp_get_topic_content', 'bbp_encode_bad' );
     160// Code filters on output (hooked in early for plugin compatibility)
     161add_filter( 'bbp_get_reply_content', 'bbp_code_trick', 4 );
     162add_filter( 'bbp_get_reply_content', 'bbp_encode_bad', 6 );
     163add_filter( 'bbp_get_topic_content', 'bbp_code_trick', 4 );
     164add_filter( 'bbp_get_topic_content', 'bbp_encode_bad', 6 );
    165165
    166166// Run wp_kses_data on topic/reply content in admin section
Note: See TracChangeset for help on using the changeset viewer.