Skip to:
Content

BuddyPress.org

Changeset 12023


Ignore:
Timestamp:
05/01/2018 01:27:49 AM (2 years ago)
Author:
boonebgorges
Message:

Nouveau: Improve escaping and avoid markup in translatable string during AJAX update posting.

See #7786.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/activity/ajax.php

    r12008 r12023  
    551551    wp_send_json_success( array(
    552552        'id'           => $activity_id,
    553         'message'      => sprintf( __( 'Update posted <a href="%s" class="just-posted">View activity</a>', 'buddypress' ), esc_url( bp_activity_get_permalink( $activity_id ) ) ),
     553        'message'      => esc_html__( 'Update posted.', 'buddypress' ) . ' ' . sprintf( '<a href="%s" class="just-posted">%s</a>', esc_url( bp_activity_get_permalink( $activity_id ) ), esc_html__( 'View activity.', 'buddypress' ) ),
    554554        'activity'     => $acivity,
    555555
Note: See TracChangeset for help on using the changeset viewer.