Skip to:
Content

BuddyPress.org

Changeset 1605


Ignore:
Timestamp:
07/15/2009 05:06:10 PM (15 years ago)
Author:
apeatling
Message:

Adding the force_balance_tags() filter so that HTML nested invalidly will not break the layout. Fixes #838

Location:
branches/1.0
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/1.0/bp-activity/bp-activity-filters.php

    r1504 r1605  
    33/* Apply WordPress defined filters */
    44add_filter( 'bp_get_activity_content', 'wp_filter_kses', 1 );
    5 
     5add_filter( 'bp_get_activity_content', 'force_balance_tags' );
    66add_filter( 'bp_get_activity_content', 'wptexturize' );
    7 
    87add_filter( 'bp_get_activity_content', 'convert_smilies' );
    9 
    108add_filter( 'bp_get_activity_content', 'convert_chars' );
    11 
    129add_filter( 'bp_get_activity_content', 'wpautop' );
    13 
    1410add_filter( 'bp_get_activity_content', 'make_clickable' );
    15 
    1611add_filter( 'bp_get_activity_content', 'stripslashes_deep' );
    1712
  • branches/1.0/bp-groups/bp-groups-filters.php

    r1484 r1605  
    4242add_filter( 'bp_get_the_site_group_description', 'wp_filter_kses', 1 );
    4343add_filter( 'bp_get_the_site_group_description_excerpt', 'wp_filter_kses', 1 );
    44 add_filter( 'groups_details_name_pre_save', 'wp_filter_kses', 1 );
    45 add_filter( 'groups_details_description_pre_save', 'wp_filter_kses', 1 );
    46 add_filter( 'groups_details_news_pre_save', 'wp_filter_kses', 1 );
     44add_filter( 'groups_group_name_before_save', 'wp_filter_kses', 1 );
     45add_filter( 'groups_group_description_before_save', 'wp_filter_kses', 1 );
     46add_filter( 'groups_group_news_before_save', 'wp_filter_kses', 1 );
    4747
    4848add_filter( 'bp_get_group_description', 'stripslashes' );
     
    5353add_filter( 'groups_new_group_forum_desc', 'bp_create_excerpt' );
    5454
     55add_filter( 'groups_group_name_before_save', 'force_balance_tags' );
     56add_filter( 'groups_group_description_before_save', 'force_balance_tags' );
     57add_filter( 'groups_group_news_before_save', 'force_balance_tags' );
     58
    5559?>
  • branches/1.0/bp-messages/bp-messages-filters.php

    r1418 r1605  
    1313add_filter( 'messages_notice_message_before_save', 'wp_filter_kses', 1 );
    1414add_filter( 'messages_notice_subject_before_save', 'wp_filter_kses', 1 );
     15
     16add_filter( 'messages_message_content_before_save', 'force_balance_tags' );
     17add_filter( 'messages_message_subject_before_save', 'force_balance_tags' );
     18add_filter( 'messages_notice_message_before_save', 'force_balance_tags' );
     19add_filter( 'messages_notice_subject_before_save', 'force_balance_tags' );
    1520
    1621add_filter( 'bp_get_message_notice_subject', 'wptexturize' );
  • branches/1.0/bp-wire/bp-wire-filters.php

    r1408 r1605  
    33/* Apply WordPress defined filters */
    44add_filter( 'bp_get_wire_post_content', 'wp_filter_kses', 1 );
    5 add_filter( 'bp_wire_post_content_before_save', 'wp_filter_kses', 1 );
    6 
    75add_filter( 'bp_get_wire_post_content', 'wptexturize' );
    8 
    96add_filter( 'bp_get_wire_post_content', 'convert_smilies', 2 );
    10 
    117add_filter( 'bp_get_wire_post_content', 'convert_chars' );
    12 
    138add_filter( 'bp_get_wire_post_content', 'wpautop' );
    14 
    159add_filter( 'bp_get_wire_post_content', 'stripslashes_deep' );
    16 
    1710add_filter( 'bp_get_wire_post_content', 'make_clickable' );
    1811
     12add_filter( 'bp_wire_post_content_before_save', 'wp_filter_kses', 1 );
     13add_filter( 'bp_wire_post_content_before_save', 'force_balance_tags' );
     14
    1915?>
  • branches/1.0/bp-xprofile/bp-xprofile-filters.php

    r1408 r1605  
    66add_filter( 'xprofile_field_name_before_save', 'wp_filter_kses', 1 );
    77add_filter( 'xprofile_field_description_before_save', 'wp_filter_kses', 1 );
     8
     9add_filter( 'xprofile_field_name_before_save', 'force_balance_tags' );
     10add_filter( 'xprofile_field_description_before_save', 'force_balance_tags' );
    811
    912add_filter( 'bp_get_the_profile_field_value', 'wptexturize' );
Note: See TracChangeset for help on using the changeset viewer.