Skip to:
Content

BuddyPress.org

Changeset 12267

Timestamp:
11/02/2018 10:58:53 AM (6 years ago)
Author:
djpaul
Message:

Emails: fix extra whitespace introducedin v3.0.

In #7706, we switched email content to use wpautop(), and there's now an
extra gap after the email greeting. This change removes the hardcoded linebreak.

Fixes #7989

Thanks to @r-a-y

Location:
trunk/src/bp-templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/assets/emails/single-bp-email.php

    r12082 r12267  
    190190                                <td style="padding: 20px; font-family: sans-serif; mso-height-rule: exactly; line-height: <?php echo esc_attr( floor( $settings['body_text_size'] * 1.618 ) . 'px' ) ?>; color: <?php echo esc_attr( $settings['body_text_color'] ); ?>; font-size: <?php echo esc_attr( $settings['body_text_size'] . 'px' ); ?>" class="body_text_color body_text_size">
    191191                                    <span style="font-weight: bold; font-size: <?php echo esc_attr( floor( $settings['body_text_size'] * 1.35 ) . 'px' ); ?>" class="welcome"><?php bp_email_the_salutation( $settings ); ?></span>
    192                                     <hr color="<?php echo esc_attr( $settings['email_bg'] ); ?>"><br>
     192                                    <hr color="<?php echo esc_attr( $settings['email_bg'] ); ?>">
    193193                                    {{{content}}}
    194194                                </td>
  • trunk/src/bp-templates/bp-nouveau/buddypress/assets/emails/single-bp-email.php

    r12156 r12267  
    190190                                <td style="padding: 20px; font-family: sans-serif; mso-height-rule: exactly; line-height: <?php echo esc_attr( floor( $settings['body_text_size'] * 1.618 ) . 'px' ); ?>; color: <?php echo esc_attr( $settings['body_text_color'] ); ?>; font-size: <?php echo esc_attr( $settings['body_text_size'] . 'px' ); ?>" class="body_text_color body_text_size">
    191191                                    <span style="font-weight: bold; font-size: <?php echo esc_attr( floor( $settings['body_text_size'] * 1.35 ) . 'px' ); ?>" class="welcome"><?php bp_email_the_salutation( $settings ); ?></span>
    192                                     <hr color="<?php echo esc_attr( $settings['email_bg'] ); ?>"><br>
     192                                    <hr color="<?php echo esc_attr( $settings['email_bg'] ); ?>">
    193193                                    {{{content}}}
    194194                                </td>
Note: See TracChangeset for help on using the changeset viewer.