fix save_template code
This commit is contained in:
parent
0466fcb4e2
commit
4867d635c0
|
@ -568,7 +568,7 @@ class WC_Email extends WC_Settings_API {
|
|||
if ( ! empty( $template_code ) && ! empty( $template_path ) ) {
|
||||
$saved = false;
|
||||
$file = get_stylesheet_directory() . '/woocommerce/' . $template_path;
|
||||
$code = stripslashes( $_POST['template_html_code'] );
|
||||
$code = stripslashes( $template_code );
|
||||
|
||||
if ( is_writeable( $file ) ) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue