Version Description
- Fix: WP5.5 compatible PHPMailer integration
- Tested up to WooCommerce 4.3
Download this release
Release Info
Developer | pomegranate |
Plugin | WooCommerce PDF Invoices & Packing Slips |
Version | 2.5.3 |
Comparing to | |
See all releases |
Code changes from version 2.5.2 to 2.5.3
- includes/class-wcpdf-main.php +2 -1
- readme.txt +5 -1
- woocommerce-pdf-invoices-packingslips.php +3 -3
includes/class-wcpdf-main.php
CHANGED
@@ -707,9 +707,10 @@ class Main {
|
|
707 |
* Set the default PHPMailer validator to 'php' ( which uses filter_var($address, FILTER_VALIDATE_EMAIL) )
|
708 |
* This avoids issues with the presence of attachments affecting email address validation in some distros of PHP 7.3
|
709 |
* See: https://wordpress.org/support/topic/invalid-address-setfrom/#post-11583815
|
|
|
710 |
*/
|
711 |
public function set_phpmailer_validator( $mailArray ) {
|
712 |
-
if ( version_compare( PHP_VERSION, '7.3', '>=' ) ) {
|
713 |
global $phpmailer;
|
714 |
if ( ! ( $phpmailer instanceof \PHPMailer ) ) {
|
715 |
require_once ABSPATH . WPINC . '/class-phpmailer.php';
|
707 |
* Set the default PHPMailer validator to 'php' ( which uses filter_var($address, FILTER_VALIDATE_EMAIL) )
|
708 |
* This avoids issues with the presence of attachments affecting email address validation in some distros of PHP 7.3
|
709 |
* See: https://wordpress.org/support/topic/invalid-address-setfrom/#post-11583815
|
710 |
+
* Fixed in WP5.5 due to upgrade to newer PHPMailer
|
711 |
*/
|
712 |
public function set_phpmailer_validator( $mailArray ) {
|
713 |
+
if ( version_compare( PHP_VERSION, '7.3', '>=' ) && version_compare( get_bloginfo( 'version' ), '5.5-dev', '<' ) ) {
|
714 |
global $phpmailer;
|
715 |
if ( ! ( $phpmailer instanceof \PHPMailer ) ) {
|
716 |
require_once ABSPATH . WPINC . '/class-phpmailer.php';
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: woocommerce, pdf, invoices, packing slips, print, delivery notes, invoice,
|
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 5.4
|
7 |
Requires PHP: 5.3
|
8 |
-
Stable tag: 2.5.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -102,6 +102,10 @@ There's a setting on the Status tab of the settings page that allows you to togg
|
|
102 |
|
103 |
== Changelog ==
|
104 |
|
|
|
|
|
|
|
|
|
105 |
= 2.5.2 =
|
106 |
* Fix: ImageMagick version conflict
|
107 |
* Translations: Updated POT
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 5.4
|
7 |
Requires PHP: 5.3
|
8 |
+
Stable tag: 2.5.3
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
102 |
|
103 |
== Changelog ==
|
104 |
|
105 |
+
= 2.5.3 =
|
106 |
+
* Fix: WP5.5 compatible PHPMailer integration
|
107 |
+
* Tested up to WooCommerce 4.3
|
108 |
+
|
109 |
= 2.5.2 =
|
110 |
* Fix: ImageMagick version conflict
|
111 |
* Translations: Updated POT
|
woocommerce-pdf-invoices-packingslips.php
CHANGED
@@ -3,14 +3,14 @@
|
|
3 |
* Plugin Name: WooCommerce PDF Invoices & Packing Slips
|
4 |
* Plugin URI: http://www.wpovernight.com
|
5 |
* Description: Create, print & email PDF invoices & packing slips for WooCommerce orders.
|
6 |
-
* Version: 2.5.
|
7 |
* Author: Ewout Fernhout
|
8 |
* Author URI: http://www.wpovernight.com
|
9 |
* License: GPLv2 or later
|
10 |
* License URI: http://www.opensource.org/licenses/gpl-license.php
|
11 |
* Text Domain: woocommerce-pdf-invoices-packing-slips
|
12 |
* WC requires at least: 2.2.0
|
13 |
-
* WC tested up to: 4.
|
14 |
*/
|
15 |
|
16 |
if ( ! defined( 'ABSPATH' ) ) {
|
@@ -21,7 +21,7 @@ if ( !class_exists( 'WPO_WCPDF' ) ) :
|
|
21 |
|
22 |
class WPO_WCPDF {
|
23 |
|
24 |
-
public $version = '2.5.
|
25 |
public $plugin_basename;
|
26 |
public $legacy_mode;
|
27 |
|
3 |
* Plugin Name: WooCommerce PDF Invoices & Packing Slips
|
4 |
* Plugin URI: http://www.wpovernight.com
|
5 |
* Description: Create, print & email PDF invoices & packing slips for WooCommerce orders.
|
6 |
+
* Version: 2.5.3
|
7 |
* Author: Ewout Fernhout
|
8 |
* Author URI: http://www.wpovernight.com
|
9 |
* License: GPLv2 or later
|
10 |
* License URI: http://www.opensource.org/licenses/gpl-license.php
|
11 |
* Text Domain: woocommerce-pdf-invoices-packing-slips
|
12 |
* WC requires at least: 2.2.0
|
13 |
+
* WC tested up to: 4.3.0
|
14 |
*/
|
15 |
|
16 |
if ( ! defined( 'ABSPATH' ) ) {
|
21 |
|
22 |
class WPO_WCPDF {
|
23 |
|
24 |
+
public $version = '2.5.3';
|
25 |
public $plugin_basename;
|
26 |
public $legacy_mode;
|
27 |
|