WooCommerce PDF Invoices & Packing Slips - Version 2.2.3

Version Description

  • Fix: issues reading shop settings
Download this release

Release Info

Developer pomegranate
Plugin Icon 128x128 WooCommerce PDF Invoices & Packing Slips
Version 2.2.3
Comparing to
See all releases

Code changes from version 2.2.2 to 2.2.3

includes/documents/abstract-wcpdf-order-document.php CHANGED
@@ -139,8 +139,10 @@ abstract class Order_Document {
139
  $order_settings = WCX_Order::get_meta( $this->order, "_wcpdf_{$this->slug}_settings" );
140
  // not sure what happens if combining with current settings will have unwanted side effects
141
  // like unchecked options being enabled because missing = unchecked in historical - disabled for now
142
- // $settings = (array) $order_settings + (array) $settings;
143
- $settings = $order_settings;
 
 
144
  }
145
  if ( empty( $order_settings ) && !empty( $this->order ) ) {
146
  // this is either the first time the document is generated, or historical settings are disabled
139
  $order_settings = WCX_Order::get_meta( $this->order, "_wcpdf_{$this->slug}_settings" );
140
  // not sure what happens if combining with current settings will have unwanted side effects
141
  // like unchecked options being enabled because missing = unchecked in historical - disabled for now
142
+ if (!empty($order_settings)) {
143
+ // $settings = (array) $order_settings + (array) $settings;
144
+ $settings = $order_settings;
145
+ }
146
  }
147
  if ( empty( $order_settings ) && !empty( $this->order ) ) {
148
  // this is either the first time the document is generated, or historical settings are disabled
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: 4.9
7
  Requires PHP: 5.3
8
- Stable tag: 2.2.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -103,6 +103,9 @@ There's a setting on the Status tab of the settings page that allows you to togg
103
 
104
  == Changelog ==
105
 
 
 
 
106
  = 2.2.2 =
107
  * Feature: Added option to always use most current settings for the invoice
108
  * Fix: Double check for empty document numbers on initialization
5
  Requires at least: 3.5
6
  Tested up to: 4.9
7
  Requires PHP: 5.3
8
+ Stable tag: 2.2.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
103
 
104
  == Changelog ==
105
 
106
+ = 2.2.3 =
107
+ * Fix: issues reading shop settings
108
+
109
  = 2.2.2 =
110
  * Feature: Added option to always use most current settings for the invoice
111
  * Fix: Double check for empty document numbers on initialization
woocommerce-pdf-invoices-packingslips.php CHANGED
@@ -3,7 +3,7 @@
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.2.2
7
  * Author: Ewout Fernhout
8
  * Author URI: http://www.wpovernight.com
9
  * License: GPLv2 or later
@@ -21,7 +21,7 @@ if ( !class_exists( 'WPO_WCPDF' ) ) :
21
 
22
  class WPO_WCPDF {
23
 
24
- public $version = '2.2.2';
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.2.3
7
  * Author: Ewout Fernhout
8
  * Author URI: http://www.wpovernight.com
9
  * License: GPLv2 or later
21
 
22
  class WPO_WCPDF {
23
 
24
+ public $version = '2.2.3';
25
  public $plugin_basename;
26
  public $legacy_mode;
27