Version Description
- Fix: Fatal PHP error on My Account page.
Download this release
Release Info
Developer | pomegranate |
Plugin | WooCommerce PDF Invoices & Packing Slips |
Version | 2.1.3 |
Comparing to | |
See all releases |
Code changes from version 2.1.2 to 2.1.3
includes/class-wcpdf-frontend.php
CHANGED
@@ -50,8 +50,8 @@ class Frontend {
|
|
50 |
|
51 |
// Check if invoice has been created already or if status allows download (filter your own array of allowed statuses)
|
52 |
if ( $invoice_allowed || in_array(WCX_Order::get_status( $order ), apply_filters( 'wpo_wcpdf_myaccount_allowed_order_statuses', array() ) ) ) {
|
53 |
-
$document_title = $invoice->get_setting('title');
|
54 |
-
if ( !empty($document_title)
|
55 |
$button_text = sprintf ( __( 'Download %s (PDF)', 'woocommerce-pdf-invoices-packing-slips' ), $invoice->get_title() );
|
56 |
} else {
|
57 |
$button_text = __( 'Download invoice (PDF)', 'woocommerce-pdf-invoices-packing-slips' );
|
50 |
|
51 |
// Check if invoice has been created already or if status allows download (filter your own array of allowed statuses)
|
52 |
if ( $invoice_allowed || in_array(WCX_Order::get_status( $order ), apply_filters( 'wpo_wcpdf_myaccount_allowed_order_statuses', array() ) ) ) {
|
53 |
+
$document_title = array_filter( $invoice->get_setting( 'title', array() ) );
|
54 |
+
if ( !empty($document_title) ) {
|
55 |
$button_text = sprintf ( __( 'Download %s (PDF)', 'woocommerce-pdf-invoices-packing-slips' ), $invoice->get_title() );
|
56 |
} else {
|
57 |
$button_text = __( 'Download invoice (PDF)', 'woocommerce-pdf-invoices-packing-slips' );
|
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.1.
|
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.1.2 =
|
107 |
* Feature: New action wpo_wcpdf_init_document
|
108 |
* Fix: Use title getters for my-account and backend buttons
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 4.9
|
7 |
Requires PHP: 5.3
|
8 |
+
Stable tag: 2.1.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.1.3 =
|
107 |
+
* Fix: Fatal PHP error on My Account page.
|
108 |
+
|
109 |
= 2.1.2 =
|
110 |
* Feature: New action wpo_wcpdf_init_document
|
111 |
* Fix: Use title getters for my-account and backend buttons
|
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.1.
|
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.1.
|
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.1.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.1.3';
|
25 |
public $plugin_basename;
|
26 |
public $legacy_mode;
|
27 |
|