Skip to:
Content

BuddyPress.org

Ticket #6529: 6529.01.patch

File 6529.01.patch, 711 bytes (added by r-a-y, 8 years ago)
  • src/bp-activity/bp-activity-filters.php

     
    3232add_filter( 'bp_activity_content_before_save',       'force_balance_tags' );
    3333add_filter( 'bp_activity_action_before_save',        'force_balance_tags' );
    3434
     35if ( bp_get_major_wp_version() >= 4.2 ) {
     36        add_filter( 'bp_activity_content_before_save', 'wp_encode_emoji' );
     37}
     38
    3539add_filter( 'bp_get_activity_action',                'wptexturize' );
    3640add_filter( 'bp_get_activity_content_body',          'wptexturize' );
    3741add_filter( 'bp_get_activity_content',               'wptexturize' );