Skip to:
Content

Changeset 11836


Ignore:
Timestamp:
01/30/18 10:48:14 (3 weeks 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.

Location:
trunk/src/bp-templates/shared/buddypress/assets/_attachments
Files:
2 edited

Legend:

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

    r11719 r11836  
    3232<script id="tmpl-bp-avatar-delete" type="text/html"> 
    3333    <# if ( 'user' === data.object ) { #> 
    34         <p><?php _e( "If you'd like to delete your current profile photo but not upload a new one, please use the delete profile photo button.", 'buddypress' ); ?></p> 
     34        <p><?php esc_html_e( "If you'd like to delete your current profile photo but not upload a new one, please use the delete profile photo button.", 'buddypress' ); ?></p> 
    3535        <button type="button" class="button edit" id="bp-delete-avatar"><?php esc_html_e( 'Delete My Profile Photo', 'buddypress' ); ?></button> 
    3636    <# } else if ( 'group' === data.object ) { #> 
  • 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.