Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/02/2023 06:55:15 AM (21 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-templates/bp-nouveau/buddypress/common/js-templates/messages/index.php

    r13415 r13510  
    77 *
    88 * @since 3.0.0
    9  * @version 10.0.0
     9 * @version 12.0.0
    1010 */
    1111
     
    156156        <div class="thread-subject">
    157157            <span class="thread-count">({{data.count}})</span>
    158             <a class="subject" href="./view/{{data.id}}/">{{data.subject}}</a>
    159         </div>
    160         <p class="excerpt">{{data.excerpt}}</p>
     158            <a class="subject" href="./view/{{data.id}}/">{{{data.subject}}}</a>
     159        </div>
     160        <p class="excerpt">{{{data.excerpt}}}</p>
    161161    </div>
    162162    <div class="thread-date">
Note: See TracChangeset for help on using the changeset viewer.