Skip to:
Content

BuddyPress.org

Ticket #9194: 9194.01.patch

File 9194.01.patch, 1.8 KB (added by emaralive, 18 months ago)

Initial patch

  • src/bp-templates/bp-legacy/buddypress/assets/emails/single-bp-email.php

    diff --git src/bp-templates/bp-legacy/buddypress/assets/emails/single-bp-email.php src/bp-templates/bp-legacy/buddypress/assets/emails/single-bp-email.php
    index dc3266dd0..d8011d520 100644
    $settings = bp_email_get_appearance_settings(); 
    215215                                                do_action( 'bp_before_email_footer' );
    216216                                                ?>
    217217
    218                                                 <span class="footer_text"><?php echo nl2br( esc_html( stripslashes( $settings['footer_text'] ) ) ); ?></span>
     218                                                <span class="footer_text"><?php echo nl2br( wp_kses( stripslashes( $settings['footer_text'] ), array( 'a' => array( 'href' => true ) ) ) ); ?></span>
    219219                                                <br><br>
    220220                                                <a href="{{{unsubscribe}}}" style="text-decoration: underline;"><?php echo esc_html_x( 'unsubscribe', 'email', 'buddypress' ); ?></a>
    221221
  • src/bp-templates/bp-nouveau/buddypress/assets/emails/single-bp-email.php

    diff --git src/bp-templates/bp-nouveau/buddypress/assets/emails/single-bp-email.php src/bp-templates/bp-nouveau/buddypress/assets/emails/single-bp-email.php
    index 0550147bb..96d9740e0 100644
    $settings = bp_email_get_appearance_settings(); 
    215215                                                do_action( 'bp_before_email_footer' );
    216216                                                ?>
    217217
    218                                                 <span class="footer_text"><?php echo nl2br( esc_html( stripslashes( $settings['footer_text'] ) ) ); ?></span>
     218                                                <span class="footer_text"><?php echo nl2br( wp_kses( stripslashes( $settings['footer_text'] ), array( 'a' => array( 'href' => true ) ) ) ); ?></span>
    219219                                                <br><br>
    220220                                                <a href="{{{unsubscribe}}}" style="text-decoration: underline;"><?php echo esc_html_x( 'unsubscribe', 'email', 'buddypress' ); ?></a>
    221221