WooCommerce PDF Invoices & Packing Slips - Version 2.14.4

Version Description

  • Fix: Content-Length header causing invalid response on some servers
Download this release

Release Info

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

Code changes from version 2.14.3 to 2.14.4

includes/wcpdf-functions.php CHANGED
@@ -144,9 +144,8 @@ function wcpdf_pdf_headers( $filename, $mode = 'inline', $pdf = null ) {
144
  case 'download':
145
  header( 'Content-Description: File Transfer' );
146
  header( 'Content-Type: application/pdf' );
147
- header( 'Content-Disposition: attachment; filename="' . $filename.'"' );
148
  header( 'Content-Transfer-Encoding: binary' );
149
- header( 'Content-Length: ' . is_null( $pdf ) ? 0 : mb_strlen( $pdf ) );
150
  header( 'Connection: Keep-Alive' );
151
  header( 'Expires: 0' );
152
  header( 'Cache-Control: must-revalidate, post-check=0, pre-check=0' );
144
  case 'download':
145
  header( 'Content-Description: File Transfer' );
146
  header( 'Content-Type: application/pdf' );
147
+ header( 'Content-Disposition: attachment; filename="' . $filename . '"' );
148
  header( 'Content-Transfer-Encoding: binary' );
 
149
  header( 'Connection: Keep-Alive' );
150
  header( 'Expires: 0' );
151
  header( 'Cache-Control: must-revalidate, post-check=0, pre-check=0' );
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.9
7
  Requires PHP: 7.1
8
- Stable tag: 2.14.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -102,6 +102,9 @@ There's a setting on the Status tab of the settings page that allows you to togg
102
 
103
  == Changelog ==
104
 
 
 
 
105
  = 2.14.3 =
106
  * Fix: preview not updating (unless test mode was enabled)
107
  * Tweak: add styles for custom settings sections
5
  Requires at least: 3.5
6
  Tested up to: 5.9
7
  Requires PHP: 7.1
8
+ Stable tag: 2.14.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
102
 
103
  == Changelog ==
104
 
105
+ = 2.14.4 =
106
+ * Fix: Content-Length header causing invalid response on some servers
107
+
108
  = 2.14.3 =
109
  * Fix: preview not updating (unless test mode was enabled)
110
  * Tweak: add styles for custom settings sections
woocommerce-pdf-invoices-packingslips.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WooCommerce PDF Invoices & Packing Slips
4
  * Plugin URI: https://wpovernight.com/downloads/woocommerce-pdf-invoices-packing-slips-bundle/
5
  * Description: Create, print & email PDF invoices & packing slips for WooCommerce orders.
6
- * Version: 2.14.3
7
  * Author: WP Overnight
8
  * Author URI: https://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.14.3';
25
  public $plugin_basename;
26
  public $legacy_mode;
27
  public $legacy_textdomain;
3
  * Plugin Name: WooCommerce PDF Invoices & Packing Slips
4
  * Plugin URI: https://wpovernight.com/downloads/woocommerce-pdf-invoices-packing-slips-bundle/
5
  * Description: Create, print & email PDF invoices & packing slips for WooCommerce orders.
6
+ * Version: 2.14.4
7
  * Author: WP Overnight
8
  * Author URI: https://www.wpovernight.com
9
  * License: GPLv2 or later
21
 
22
  class WPO_WCPDF {
23
 
24
+ public $version = '2.14.4';
25
  public $plugin_basename;
26
  public $legacy_mode;
27
  public $legacy_textdomain;