Changeset 12393 for trunk/src/bp-xprofile/bp-xprofile-activity.php
- Timestamp:
- 05/03/2019 05:27:08 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-activity.php
r11447 r12393 61 61 function bp_xprofile_format_activity_action_new_avatar( $action, $activity ) { 62 62 $userlink = bp_core_get_userlink( $activity->user_id ); 63 $action = sprintf( __( '%s changed their profile picture', 'buddypress' ), $userlink );63 $action = sprintf( esc_html__( '%s changed their profile picture', 'buddypress' ), $userlink ); 64 64 65 65 // Legacy filter - pass $user_id instead of $activity. … … 95 95 // natural translation. 96 96 $profile_link = trailingslashit( bp_core_get_user_domain( $activity->user_id ) . bp_get_profile_slug() ); 97 $action = sprintf( __( "%s's profile was updated", 'buddypress' ), '<a href="' . $profile_link. '">' . bp_core_get_user_displayname( $activity->user_id ) . '</a>' );97 $action = sprintf( esc_html__( "%s's profile was updated", 'buddypress' ), '<a href="' . esc_url( $profile_link ) . '">' . bp_core_get_user_displayname( $activity->user_id ) . '</a>' ); 98 98 99 99 /**
Note: See TracChangeset
for help on using the changeset viewer.