Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/08/2016 10:39:28 PM (8 years ago)
Author:
r-a-y
Message:

Support emojis for those using WordPress 4.2+.

WordPress introduced a function in WP 4.2 to encode emojis,
wp_encode_emoji().

We're using this function to encode emojis in activity streams, private
messages and group descriptions.

🍕

Fixes #6529.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-filters.php

    r10549 r10572  
    3333add_filter( 'bp_activity_content_before_save',       'force_balance_tags' );
    3434add_filter( 'bp_activity_action_before_save',        'force_balance_tags' );
     35
     36if ( function_exists( 'wp_encode_emoji' ) ) {
     37    add_filter( 'bp_activity_content_before_save', 'wp_encode_emoji' );
     38}
    3539
    3640add_filter( 'bp_get_activity_action',                'wptexturize' );
Note: See TracChangeset for help on using the changeset viewer.