Skip to:
Content

bbPress.org

Changeset 4737


Ignore:
Timestamp:
01/29/2013 07:45:46 PM (9 years ago)
Author:
johnjamesjacoby
Message:

Change topic and reply content filter order to move 'bbp_mention_filter' just behind 'make_clickable' since mentions are an extention of it. See #2185.

File:
1 edited

Legend:

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

    r4714 r4737  
    122122// Run filters on reply content
    123123add_filter( 'bbp_get_reply_content', 'make_clickable',     4    );
     124add_filter( 'bbp_get_reply_content', 'bbp_mention_filter', 5    );
    124125add_filter( 'bbp_get_reply_content', 'wptexturize',        6    );
    125126add_filter( 'bbp_get_reply_content', 'convert_chars',      8    );
    126127add_filter( 'bbp_get_reply_content', 'capital_P_dangit',   10   );
    127128add_filter( 'bbp_get_reply_content', 'convert_smilies',    20   );
    128 add_filter( 'bbp_get_reply_content', 'force_balance_tags', 25   );
    129 add_filter( 'bbp_get_reply_content', 'wpautop',            30   );
    130 add_filter( 'bbp_get_reply_content', 'bbp_mention_filter', 40   );
     129add_filter( 'bbp_get_reply_content', 'force_balance_tags', 30   );
     130add_filter( 'bbp_get_reply_content', 'wpautop',            40   );
    131131
    132132// Run filters on topic content
    133133add_filter( 'bbp_get_topic_content', 'make_clickable',     4    );
     134add_filter( 'bbp_get_topic_content', 'bbp_mention_filter', 5    );
    134135add_filter( 'bbp_get_topic_content', 'wptexturize',        6    );
    135136add_filter( 'bbp_get_topic_content', 'convert_chars',      8    );
    136137add_filter( 'bbp_get_topic_content', 'capital_P_dangit',   10   );
    137138add_filter( 'bbp_get_topic_content', 'convert_smilies',    20   );
    138 add_filter( 'bbp_get_topic_content', 'force_balance_tags', 25   );
    139 add_filter( 'bbp_get_topic_content', 'wpautop',            30   );
    140 add_filter( 'bbp_get_topic_content', 'bbp_mention_filter', 40   );
     139add_filter( 'bbp_get_topic_content', 'force_balance_tags', 30   );
     140add_filter( 'bbp_get_topic_content', 'wpautop',            40   );
    141141
    142142// Add number format filter to functions requiring numeric output
Note: See TracChangeset for help on using the changeset viewer.