Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/03/2019 05:27:08 PM (6 years ago)
Author:
imath
Message:

More constistent escaping in Activity action strings

This commit is also fixing a regression introduced in version 4.3.0 about activity streams secondary avatars.

Fixes #8090 (trunk)

File:
1 edited

Legend:

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

    r12186 r12393  
    142142    $friend_link    = bp_core_get_userlink( $activity->secondary_item_id );
    143143
    144     $action = sprintf( __( '%1$s and %2$s are now friends', 'buddypress' ), $initiator_link, $friend_link );
     144    $action = sprintf( esc_html__( '%1$s and %2$s are now friends', 'buddypress' ), $initiator_link, $friend_link );
    145145
    146146    // Backward compatibility for legacy filter
     
    176176    $friend_link    = bp_core_get_userlink( $activity->secondary_item_id );
    177177
    178     $action = sprintf( __( '%1$s and %2$s are now friends', 'buddypress' ), $initiator_link, $friend_link );
     178    $action = sprintf( esc_html__( '%1$s and %2$s are now friends', 'buddypress' ), $initiator_link, $friend_link );
    179179
    180180    // Backward compatibility for legacy filter
Note: See TracChangeset for help on using the changeset viewer.