Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/02/2023 06:55:15 AM (18 months ago)
Author:
imath
Message:

Messages: use WP Emojis in subject, excerpt & content

  • Add filters to subject, excerpt & content template functions using the wp_staticize_emoji callback.
  • Update some Nouveau templates/ajax functions to make sure these WP Emojis are rightly rendered.

Props niftythree

Fixes #8928
Closes https://github.com/buddypress/buddypress/pull/123

File:
1 edited

Legend:

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

    r12757 r13510  
    7878add_filter( 'bp_get_message_thread_content',          'stripslashes_deep', 1 );
    7979
     80add_filter( 'bp_get_the_thread_subject', 'wp_staticize_emoji', 12 );
     81add_filter( 'bp_get_message_thread_subject', 'wp_staticize_emoji', 12 );
     82add_filter( 'bp_get_message_thread_excerpt', 'wp_staticize_emoji', 12 );
     83add_filter( 'bp_get_the_thread_message_content', 'wp_staticize_emoji', 12 );
     84add_filter( 'bp_get_message_thread_content', 'wp_staticize_emoji', 12 );
     85
    8086add_filter( 'bp_get_the_thread_message_content', 'bp_core_add_loading_lazy_attribute' );
    8187
Note: See TracChangeset for help on using the changeset viewer.