Changeset 11895
- Timestamp:
- 03/07/2018 12:27:57 PM (7 years ago)
- Location:
- trunk/src/bp-core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-filters.php
r11893 r11895 1132 1132 // Make sure we add a <title> tag so WP Customizer picks it up. 1133 1133 $template = str_replace( '<head>', '<head><title>' . esc_html_x( 'BuddyPress Emails', 'screen heading', 'buddypress' ) . '</title>', $template ); 1134 echo str_replace( '{{{content}}}', nl2br( get_post()->post_content ), $template );1134 echo str_replace( '{{{content}}}', wpautop( get_post()->post_content ), $template ); 1135 1135 1136 1136 /* -
trunk/src/bp-core/classes/class-bp-email.php
r10696 r11895 247 247 // Special-case to fill the $template with the email $content. 248 248 case 'add-content': 249 $retval = str_replace( '{{{content}}}', nl2br( $this->get_content( 'replace-tokens' ) ), $retval );249 $retval = str_replace( '{{{content}}}', wpautop( $this->get_content( 'replace-tokens' ) ), $retval ); 250 250 // Fall through. 251 251
Note: See TracChangeset
for help on using the changeset viewer.