Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/30/2018 10:48:14 AM (7 years ago)
Author:
hnla
Message:

Update un-escaped translatable strings

In assets folder 'attachments' there are a few strings echoing direct to markup, update these to esc_html_e() to match similar strings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/shared/buddypress/assets/_attachments/cover-images/index.php

    r11719 r11836  
    2121<script id="tmpl-bp-cover-image-delete" type="text/html">
    2222    <# if ( 'user' === data.object ) { #>
    23         <p><?php _e( "If you'd like to delete your current cover image but not upload a new one, please use the delete Cover Image button.", 'buddypress' ); ?></p>
     23        <p><?php esc_html_e( "If you'd like to delete your current cover image but not upload a new one, please use the delete Cover Image button.", 'buddypress' ); ?></p>
    2424        <button type="button" class="button edit" id="bp-delete-cover-image"><?php esc_html_e( 'Delete My Cover Image', 'buddypress' ); ?></button>
    2525    <# } else if ( 'group' === data.object ) { #>
    26         <p><?php _e( "If you'd like to remove the existing group cover image but not upload a new one, please use the delete group cover image button.", 'buddypress' ); ?></p>
     26        <p><?php esc_html_e( "If you'd like to remove the existing group cover image but not upload a new one, please use the delete group cover image button.", 'buddypress' ); ?></p>
    2727        <button type="button" class="button edit" id="bp-delete-cover-image"><?php esc_html_e( 'Delete Group Cover Image', 'buddypress' ); ?></button>
    2828    <# } else { #>
Note: See TracChangeset for help on using the changeset viewer.