fix for templates in settings page (line breaks, tabs were lost)
-
10.38/10.39 removes line breaks, tabs, and extra whitespace in the email Templates.
To get them back change:
sanitize_text_field
tosanitize_textarea_field
admin/settings.php
line 64
$this->subscribe2_options[ $key ] = sanitize_text_field( trim( $_POST[ $key ] ) );
to
$this->subscribe2_options[ $key ] = sanitize_textarea_field( trim( $_POST[ $key ] ) )
;You have to reconfigure your templates and save them again. But with this fix, they will saved again with breaks, tabs, and extra whitespaces.
br
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘fix for templates in settings page (line breaks, tabs were lost)’ is closed to new replies.