WooCommerce PDF Invoices & Packing Slips - Version 1.5.22

Version Description

  • Fix: Workaround for bug in WPML (which cleared all settings)
  • Translation: fixed Polish translation for invoice
Download this release

Release Info

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

Code changes from version 1.5.21 to 1.5.22

includes/class-wcpdf-export.php CHANGED
@@ -578,6 +578,9 @@ if ( ! class_exists( 'WooCommerce_PDF_Invoices_Export' ) ) {
578
 
579
  // increase next_order_number
580
  $template_settings = apply_filters( 'wpml_unfiltered_admin_string', get_option( 'wpo_wcpdf_template_settings' ), 'wpo_wcpdf_template_settings' );
 
 
 
581
  $template_settings['next_invoice_number'] = $this->template_settings['next_invoice_number'] = $invoice_number+1;
582
  update_option( 'wpo_wcpdf_template_settings', $template_settings );
583
  }
578
 
579
  // increase next_order_number
580
  $template_settings = apply_filters( 'wpml_unfiltered_admin_string', get_option( 'wpo_wcpdf_template_settings' ), 'wpo_wcpdf_template_settings' );
581
+ // fix wpml bug
582
+ $template_settings = maybe_unserialize($template_settings);
583
+
584
  $template_settings['next_invoice_number'] = $this->template_settings['next_invoice_number'] = $invoice_number+1;
585
  update_option( 'wpo_wcpdf_template_settings', $template_settings );
586
  }
languages/wpo_wcpdf-pl_PL.mo CHANGED
Binary file
languages/wpo_wcpdf-pl_PL.po CHANGED
@@ -2,14 +2,14 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WooCommerce PDF Invoices & Packing Slips\n"
4
  "POT-Creation-Date: 2014-09-18 15:08+0100\n"
5
- "PO-Revision-Date: 2014-11-04 16:11+0100\n"
6
- "Last-Translator: Michał Dybczak <michal.dybczak@gmail.com>\n"
7
  "Language-Team: WP Overnight <support@wpovernight.com>\n"
8
  "Language: pl_PL\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.6.8\n"
13
  "X-Poedit-Basepath: ../\n"
14
  "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
15
  "|| n%100>=20) ? 1 : 2);\n"
@@ -420,7 +420,7 @@ msgstr "Data zamówienia:"
420
 
421
  #: templates/pdf/Simple/invoice.php:46
422
  msgid "Invoice Number:"
423
- msgstr "Zamówienie nr:"
424
 
425
  #: templates/pdf/Simple/invoice.php:49
426
  #: templates/pdf/Simple/packing-slip.php:32
2
  msgstr ""
3
  "Project-Id-Version: WooCommerce PDF Invoices & Packing Slips\n"
4
  "POT-Creation-Date: 2014-09-18 15:08+0100\n"
5
+ "PO-Revision-Date: 2015-08-15 15:17+0100\n"
6
+ "Last-Translator: Damian Wajer <webmaster@graphcore.pl>\n"
7
  "Language-Team: WP Overnight <support@wpovernight.com>\n"
8
  "Language: pl_PL\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.5.4\n"
13
  "X-Poedit-Basepath: ../\n"
14
  "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
15
  "|| n%100>=20) ? 1 : 2);\n"
420
 
421
  #: templates/pdf/Simple/invoice.php:46
422
  msgid "Invoice Number:"
423
+ msgstr "Nr faktury:"
424
 
425
  #: templates/pdf/Simple/invoice.php:49
426
  #: templates/pdf/Simple/packing-slip.php:32
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: pomegranate
3
  Tags: woocommerce, pdf, invoices, packing slips, print, delivery notes, invoice, packing slip, export, email, bulk, automatic
4
  Requires at least: 3.5
5
  Tested up to: 4.2
6
- Stable tag: 1.5.21
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -235,6 +235,10 @@ This usually only happens on batch actions. PDF creation is a memory intensive j
235
 
236
  == Changelog ==
237
 
 
 
 
 
238
  = 1.5.21 =
239
  * Translations: Added Estionan (thanks Tanel!)
240
  * Tweak: WC2.4 compatibility
3
  Tags: woocommerce, pdf, invoices, packing slips, print, delivery notes, invoice, packing slip, export, email, bulk, automatic
4
  Requires at least: 3.5
5
  Tested up to: 4.2
6
+ Stable tag: 1.5.22
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
235
 
236
  == Changelog ==
237
 
238
+ = 1.5.22 =
239
+ * Fix: Workaround for bug in WPML (which cleared all settings)
240
+ * Translation: fixed Polish translation for invoice
241
+
242
  = 1.5.21 =
243
  * Translations: Added Estionan (thanks Tanel!)
244
  * Tweak: WC2.4 compatibility
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: 1.5.21
7
  * Author: Ewout Fernhout
8
  * Author URI: http://www.wpovernight.com
9
  * License: GPLv2 or later
@@ -33,7 +33,7 @@ if ( !class_exists( 'WooCommerce_PDF_Invoices' ) ) {
33
  self::$plugin_basename = plugin_basename(__FILE__);
34
  self::$plugin_url = plugin_dir_url(self::$plugin_basename);
35
  self::$plugin_path = trailingslashit(dirname(__FILE__));
36
- self::$version = '1.5.21';
37
 
38
  // load the localisation & classes
39
  add_action( 'plugins_loaded', array( $this, 'translations' ) ); // or use init?
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: 1.5.22
7
  * Author: Ewout Fernhout
8
  * Author URI: http://www.wpovernight.com
9
  * License: GPLv2 or later
33
  self::$plugin_basename = plugin_basename(__FILE__);
34
  self::$plugin_url = plugin_dir_url(self::$plugin_basename);
35
  self::$plugin_path = trailingslashit(dirname(__FILE__));
36
+ self::$version = '1.5.22';
37
 
38
  // load the localisation & classes
39
  add_action( 'plugins_loaded', array( $this, 'translations' ) ); // or use init?