Version Description
- Fix: Fatal error on orders with multiple refunds
Download this release
Release Info
Developer | pomegranate |
Plugin | WooCommerce PDF Invoices & Packing Slips |
Version | 2.2.11 |
Comparing to | |
See all releases |
Code changes from version 2.2.10 to 2.2.11
- includes/class-wcpdf-admin.php +11 -6
- readme.txt +4 -1
- woocommerce-pdf-invoices-packingslips.php +3 -3
includes/class-wcpdf-admin.php
CHANGED
@@ -169,12 +169,15 @@ class Admin {
|
|
169 |
$listing_actions = array();
|
170 |
$documents = WPO_WCPDF()->documents->get_documents();
|
171 |
foreach ($documents as $document) {
|
|
|
|
|
172 |
if ( $document = wcpdf_get_document( $document->get_type(), $order ) ) {
|
|
|
173 |
$listing_actions[$document->get_type()] = array(
|
174 |
'url' => wp_nonce_url( admin_url( "admin-ajax.php?action=generate_wpo_wcpdf&document_type={$document->get_type()}&order_ids=" . WCX_Order::get_id( $order ) ), 'generate_wpo_wcpdf' ),
|
175 |
-
'img' =>
|
176 |
-
'alt' => "PDF " . $
|
177 |
-
'exists' => $document->exists(),
|
178 |
);
|
179 |
}
|
180 |
}
|
@@ -320,12 +323,14 @@ class Admin {
|
|
320 |
$documents = WPO_WCPDF()->documents->get_documents();
|
321 |
$order = WCX::get_order( $post->ID );
|
322 |
foreach ($documents as $document) {
|
|
|
323 |
if ( $document = wcpdf_get_document( $document->get_type(), $order ) ) {
|
|
|
324 |
$meta_box_actions[$document->get_type()] = array(
|
325 |
'url' => wp_nonce_url( admin_url( "admin-ajax.php?action=generate_wpo_wcpdf&document_type={$document->get_type()}&order_ids=" . $post_id ), 'generate_wpo_wcpdf' ),
|
326 |
-
'alt' => esc_attr( "PDF " . $
|
327 |
-
'title' => "PDF " . $
|
328 |
-
'exists' => $document->exists(),
|
329 |
);
|
330 |
}
|
331 |
}
|
169 |
$listing_actions = array();
|
170 |
$documents = WPO_WCPDF()->documents->get_documents();
|
171 |
foreach ($documents as $document) {
|
172 |
+
$document_title = $document->get_title();
|
173 |
+
$icon = !empty($document->icon) ? $document->icon : WPO_WCPDF()->plugin_url() . "/assets/images/generic_document.png";
|
174 |
if ( $document = wcpdf_get_document( $document->get_type(), $order ) ) {
|
175 |
+
$document_title = method_exists($document, 'get_title') ? $document->get_title() : $document_title;
|
176 |
$listing_actions[$document->get_type()] = array(
|
177 |
'url' => wp_nonce_url( admin_url( "admin-ajax.php?action=generate_wpo_wcpdf&document_type={$document->get_type()}&order_ids=" . WCX_Order::get_id( $order ) ), 'generate_wpo_wcpdf' ),
|
178 |
+
'img' => $icon,
|
179 |
+
'alt' => "PDF " . $document_title,
|
180 |
+
'exists' => method_exists($document, 'exists') ? $document->exists() : false,
|
181 |
);
|
182 |
}
|
183 |
}
|
323 |
$documents = WPO_WCPDF()->documents->get_documents();
|
324 |
$order = WCX::get_order( $post->ID );
|
325 |
foreach ($documents as $document) {
|
326 |
+
$document_title = $document->get_title();
|
327 |
if ( $document = wcpdf_get_document( $document->get_type(), $order ) ) {
|
328 |
+
$document_title = method_exists($document, 'get_title') ? $document->get_title() : $document_title;
|
329 |
$meta_box_actions[$document->get_type()] = array(
|
330 |
'url' => wp_nonce_url( admin_url( "admin-ajax.php?action=generate_wpo_wcpdf&document_type={$document->get_type()}&order_ids=" . $post_id ), 'generate_wpo_wcpdf' ),
|
331 |
+
'alt' => esc_attr( "PDF " . $document_title ),
|
332 |
+
'title' => "PDF " . $document_title,
|
333 |
+
'exists' => method_exists($document, 'exists') ? $document->exists() : false,
|
334 |
);
|
335 |
}
|
336 |
}
|
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.
|
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.10 =
|
107 |
* Fix: Possible conflict with latest Subscriptions
|
108 |
* Fix: Load correct translations when admin user profile language is set to different locale
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 5.1
|
7 |
Requires PHP: 5.3
|
8 |
+
Stable tag: 2.2.11
|
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.11 =
|
107 |
+
* Fix: Fatal error on orders with multiple refunds
|
108 |
+
|
109 |
= 2.2.10 =
|
110 |
* Fix: Possible conflict with latest Subscriptions
|
111 |
* Fix: Load correct translations when admin user profile language is set to different locale
|
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.2.
|
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: 3.
|
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.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.11
|
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: 3.6.0
|
14 |
*/
|
15 |
|
16 |
if ( ! defined( 'ABSPATH' ) ) {
|
21 |
|
22 |
class WPO_WCPDF {
|
23 |
|
24 |
+
public $version = '2.2.11';
|
25 |
public $plugin_basename;
|
26 |
public $legacy_mode;
|
27 |
|