Skip to:
Content

BuddyPress.org

Ticket #7894: 7894.3.patch

File 7894.3.patch, 2.3 KB (added by spdustin, 13 months ago)

Apply escaped Gravatar URL patch when avatar uploads are enabled as well as disabled

  • change-avatar.

    old new  
    1515
    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                        echo sprintf( 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
    2128        <form action="" method="post" id="avatar-upload-form" class="standard-form" enctype="multipart/form-data">
     
    7481
    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                echo sprintf( 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
     92                </p>
    7893
    7994<?php endif; ?>
    8095
    8196<?php
    82 bp_nouveau_member_hook( 'after', 'avatar_upload_content' );
     97bp_nouveau_member_hook( 'after', 'avatar_upload_content' );
     98 No newline at end of file