WordPress.org

Make WordPress Core

Changeset 3963


Ignore:
Timestamp:
07/04/2006 10:09:44 PM (12 years ago)
Author:
ryan
Message:

Force balanced tags in comments. Props Nazgul. fixes #2714

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-filters.php

    r3902 r3963  
    4343add_filter('comment_text', 'convert_chars');
    4444add_filter('comment_text', 'make_clickable');
     45add_filter('comment_text', 'force_balance_tags', 25);
    4546add_filter('comment_text', 'wpautop', 30);
    4647add_filter('comment_text', 'convert_smilies', 20);
  • trunk/wp-includes/formatting.php

    r3907 r3963  
    506506}
    507507
     508function force_balance_tags($text) {
     509    return balanceTags($text, 0, true);
     510}
    508511
    509512function format_to_edit($content, $richedit = false) {
Note: See TracChangeset for help on using the changeset viewer.