Skip to:
Content

bbPress.org


Ignore:
Timestamp:
03/17/2017 05:55:58 PM (9 years ago)
Author:
johnjamesjacoby
Message:

Mentions: Balance tags before making things clickable.

Then, make mentions clickable without "requiring" prepending whitespace. This allows other types of characters to be immediately before the @ control character.

See #2963.

File:
1 edited

Legend:

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

    r6338 r6380  
    144144
    145145// Run filters on reply content
    146 add_filter( 'bbp_get_reply_content', 'bbp_make_clickable', 4    );
    147 add_filter( 'bbp_get_reply_content', 'wptexturize',        6    );
    148 add_filter( 'bbp_get_reply_content', 'convert_chars',      8    );
    149 add_filter( 'bbp_get_reply_content', 'capital_P_dangit',   10  );
    150 add_filter( 'bbp_get_reply_content', 'convert_smilies',    20  );
    151 add_filter( 'bbp_get_reply_content', 'force_balance_tags', 30  );
    152 add_filter( 'bbp_get_reply_content', 'wpautop',            40  );
    153 add_filter( 'bbp_get_reply_content', 'bbp_rel_nofollow',   50  );
     146add_filter( 'bbp_get_reply_content', 'wptexturize',        6  );
     147add_filter( 'bbp_get_reply_content', 'convert_chars',      8  );
     148add_filter( 'bbp_get_reply_content', 'capital_P_dangit',   10 );
     149add_filter( 'bbp_get_reply_content', 'convert_smilies',    20 );
     150add_filter( 'bbp_get_reply_content', 'force_balance_tags', 30 );
     151add_filter( 'bbp_get_reply_content', 'bbp_make_clickable', 40 );
     152add_filter( 'bbp_get_reply_content', 'wpautop',            50 );
     153add_filter( 'bbp_get_reply_content', 'bbp_rel_nofollow',   60 );
    154154
    155155// Run filters on topic content
    156 add_filter( 'bbp_get_topic_content', 'bbp_make_clickable', 4    );
    157 add_filter( 'bbp_get_topic_content', 'wptexturize',        6    );
    158 add_filter( 'bbp_get_topic_content', 'convert_chars',      8    );
    159 add_filter( 'bbp_get_topic_content', 'capital_P_dangit',   10  );
    160 add_filter( 'bbp_get_topic_content', 'convert_smilies',    20  );
    161 add_filter( 'bbp_get_topic_content', 'force_balance_tags', 30  );
    162 add_filter( 'bbp_get_topic_content', 'wpautop',            40  );
    163 add_filter( 'bbp_get_topic_content', 'bbp_rel_nofollow',   50  );
     156add_filter( 'bbp_get_topic_content', 'wptexturize',        6  );
     157add_filter( 'bbp_get_topic_content', 'convert_chars',      8  );
     158add_filter( 'bbp_get_topic_content', 'capital_P_dangit',   10 );
     159add_filter( 'bbp_get_topic_content', 'convert_smilies',    20 );
     160add_filter( 'bbp_get_topic_content', 'force_balance_tags', 30 );
     161add_filter( 'bbp_get_topic_content', 'bbp_make_clickable', 40 );
     162add_filter( 'bbp_get_topic_content', 'wpautop',            50 );
     163add_filter( 'bbp_get_topic_content', 'bbp_rel_nofollow',   60 );
    164164
    165165// Form textarea output - undo the code-trick done pre-save, and sanitize
Note: See TracChangeset for help on using the changeset viewer.