WooCommerce PDF Invoices & Packing Slips - Version 2.2.9

Version Description

  • Feature: Added customer note email to attachment options
  • Fix: Prevent empty invoice dates from being saved as 1970 (fallback to current date/time)
Download this release

Release Info

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

Code changes from version 2.2.8 to 2.2.9

includes/class-wcpdf-admin.php CHANGED
@@ -440,7 +440,7 @@ class Admin {
440
 
441
  $order = WCX::get_order( $post_id );
442
  if ( $invoice = wcpdf_get_invoice( $order ) ) {
443
- if ( isset( $_POST['wcpdf_invoice_date'] ) ) {
444
  $date = $_POST['wcpdf_invoice_date'];
445
  $hour = !empty( $_POST['wcpdf_invoice_date_hour'] ) ? $_POST['wcpdf_invoice_date_hour'] : '00';
446
  $minute = !empty( $_POST['wcpdf_invoice_date_minute'] ) ? $_POST['wcpdf_invoice_date_minute'] : '00';
440
 
441
  $order = WCX::get_order( $post_id );
442
  if ( $invoice = wcpdf_get_invoice( $order ) ) {
443
+ if ( !empty( $_POST['wcpdf_invoice_date'] ) ) {
444
  $date = $_POST['wcpdf_invoice_date'];
445
  $hour = !empty( $_POST['wcpdf_invoice_date_hour'] ) ? $_POST['wcpdf_invoice_date_hour'] : '00';
446
  $minute = !empty( $_POST['wcpdf_invoice_date_minute'] ) ? $_POST['wcpdf_invoice_date_minute'] : '00';
includes/documents/abstract-wcpdf-order-document.php CHANGED
@@ -718,7 +718,6 @@ abstract class Order_Document {
718
  $wc_emails = $mailer->get_emails();
719
 
720
  $non_order_emails = array(
721
- 'customer_note',
722
  'customer_reset_password',
723
  'customer_new_account'
724
  );
718
  $wc_emails = $mailer->get_emails();
719
 
720
  $non_order_emails = array(
 
721
  'customer_reset_password',
722
  'customer_new_account'
723
  );
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.1
7
  Requires PHP: 5.3
8
- Stable tag: 2.2.8
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -103,6 +103,10 @@ There's a setting on the Status tab of the settings page that allows you to togg
103
 
104
  == Changelog ==
105
 
 
 
 
 
106
  = 2.2.8 =
107
  * Tested up to WP5.1
108
  * Tweak: Re-use attachment file if not older than 60 seconds (tentative fix for parallel read & write issues)
5
  Requires at least: 3.5
6
  Tested up to: 5.1
7
  Requires PHP: 5.3
8
+ Stable tag: 2.2.9
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.9 =
107
+ * Feature: Added customer note email to attachment options
108
+ * Fix: Prevent empty invoice dates from being saved as 1970 (fallback to current date/time)
109
+
110
  = 2.2.8 =
111
  * Tested up to WP5.1
112
  * Tweak: Re-use attachment file if not older than 60 seconds (tentative fix for parallel read & write issues)
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.8
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.8';
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.9
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.9';
25
  public $plugin_basename;
26
  public $legacy_mode;
27