mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- added the data protocol for embedding base64 encoded logos in emails;
This commit is contained in:
@@ -3731,19 +3731,18 @@ Use Only Cookies: <?php echo ini_get( 'session.use_only_cookies' ) ?
|
||||
return $section;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param array $settings
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
function save_email_templates( $settings ) {
|
||||
public function save_email_templates( $settings ) {
|
||||
if ( empty( $settings['um_email_template'] ) ) {
|
||||
return $settings;
|
||||
}
|
||||
|
||||
$template = $settings['um_email_template'];
|
||||
$content = wp_kses_post( stripslashes( $settings[ $template ] ) );
|
||||
$content = wp_kses( stripslashes( $settings[ $template ] ), 'post', array( 'data' ) );
|
||||
|
||||
$theme_template_path = UM()->mail()->get_template_file( 'theme', $template );
|
||||
if ( ! file_exists( $theme_template_path ) ) {
|
||||
@@ -3751,7 +3750,7 @@ Use Only Cookies: <?php echo ini_get( 'session.use_only_cookies' ) ?
|
||||
}
|
||||
|
||||
if ( file_exists( $theme_template_path ) ) {
|
||||
$fp = fopen( $theme_template_path, "w" );
|
||||
$fp = fopen( $theme_template_path, "w" );
|
||||
$result = fputs( $fp, $content );
|
||||
fclose( $fp );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user