Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/05/2018 02:18:49 AM (6 years ago)
Author:
imath
Message:

BP Nouveau: escape properly the user Profile Photo Gravatar fallback

Props vapvarun, DJPaul, spdustin

Fixes #7895 (trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/profile/change-avatar.php

    r12156 r12217  
    44 *
    55 * @since 3.0.0
    6  * @version 3.1.0
     6 * @version 3.2.0
    77 */
    88?>
     
    1616    <p class="bp-feedback info">
    1717        <span class="bp-icon" aria-hidden="true"></span>
    18         <span class="bp-help-text"><?php esc_html_e( 'Your profile photo will be used on your profile and throughout the site. If there is a <a href="https://gravatar.com">Gravatar</a> associated with your account email we will use that, or you can upload an image from your computer.', 'buddypress' ); ?></span>
     18        <span class="bp-help-text">
     19            <?php
     20            /* Translators: %s is used to output the link to the Gravatar site */
     21            printf( esc_html__( 'Your profile photo will be used on your profile and throughout the site. If there is a %s associated with your account email we will use that, or you can upload an image from your computer.', 'buddypress' ),
     22                /* Translators: Url to the Gravatar site, you can use the one for your country eg: https://fr.gravatar.com for French translation */
     23                '<a href="' . esc_url( __( 'https://gravatar.com', 'buddypress' ) ) . '">Gravatar</a>'
     24            ); ?>
     25        </span>
    1926    </p>
    2027
     
    7582<?php else : ?>
    7683
    77     <p class="bp-help-text"><?php esc_html_e( 'Your profile photo will be used on your profile and throughout the site. To change your profile photo, create an account with <a href="https://gravatar.com">Gravatar</a> using the same email address as you used to register with this site.', 'buddypress' ); ?></p>
     84    <p class="bp-help-text">
     85        <?php
     86        /* Translators: %s is used to output the link to the Gravatar site */
     87        printf( esc_html__( 'Your profile photo will be used on your profile and throughout the site. To change your profile photo, create an account with %s using the same email address as you used to register with this site.', 'buddypress' ),
     88            /* Translators: Url to the Gravatar site, you can use the one for your country eg: https://fr.gravatar.com for French translation */
     89            '<a href="' . esc_url( __( 'https://gravatar.com', 'buddypress' ) ) . '">Gravatar</a>'
     90        ); ?>
     91    </p>
    7892
    7993<?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.