diff --git a/src/wp-includes/class-phpmailer.php b/src/wp-includes/class-phpmailer.php
index 7f5e353578..d7abcb4b46 100644
a
|
b
|
protected function encodeFile($path, $encoding = 'base64') |
2690 | 2690 | if (!is_readable($path)) { |
2691 | 2691 | throw new phpmailerException($this->lang('file_open') . $path, self::STOP_CONTINUE); |
2692 | 2692 | } |
2693 | | $magic_quotes = get_magic_quotes_runtime(); |
| 2693 | $magic_quotes = PHP_VERSION_ID < 70400 && get_magic_quotes_runtime(); |
2694 | 2694 | if ($magic_quotes) { |
2695 | 2695 | if (version_compare(PHP_VERSION, '5.3.0', '<')) { |
2696 | 2696 | set_magic_quotes_runtime(false); |