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-groups/bp-groups-filters.php

    r10554 r10572  
    5454add_filter( 'groups_group_name_before_save',        'trim' );
    5555add_filter( 'groups_group_description_before_save', 'trim' );
     56
     57// Support emojis.
     58if ( function_exists( 'wp_encode_emoji' ) ) {
     59    add_filter( 'groups_group_description_before_save', 'wp_encode_emoji' );
     60}
    5661
    5762// Escape output of new group creation details.
Note: See TracChangeset for help on using the changeset viewer.