Version Description
- Fix: Template paths on windows servers were not properly saved (stripslashes), resulting in an empty output.
Download this release
Release Info
Developer | pomegranate |
Plugin | WooCommerce PDF Invoices & Packing Slips |
Version | 1.1.4 |
Comparing to | |
See all releases |
Code changes from version 1.1.3 to 1.1.4
includes/class-wcpdf-export.php
CHANGED
@@ -74,6 +74,10 @@ if ( ! class_exists( 'WooCommerce_PDF_Invoices_Export' ) ) {
|
|
74 |
// clean up special characters
|
75 |
$complete_pdf = utf8_decode(mb_convert_encoding($complete_pdf, 'HTML-ENTITIES', 'UTF-8'));
|
76 |
|
|
|
|
|
|
|
|
|
77 |
// die($complete_pdf); //output html to browser for debug
|
78 |
|
79 |
require_once( WooCommerce_PDF_Invoices::$plugin_path . "lib/dompdf/dompdf_config.inc.php" );
|
74 |
// clean up special characters
|
75 |
$complete_pdf = utf8_decode(mb_convert_encoding($complete_pdf, 'HTML-ENTITIES', 'UTF-8'));
|
76 |
|
77 |
+
// Uncomment the lines below to see if the templates are readable by the plugin
|
78 |
+
// echo 'Template path: <pre>' . $this->template_path . '</pre><br/>';
|
79 |
+
// if (!file_exists($template_wrapper)) echo 'Template wrapper not found! <pre>'.$template_wrapper.'</pre><br/>';
|
80 |
+
// if (!file_exists($template)) echo 'Template not found! <pre>'.$template.'</pre><br/>';
|
81 |
// die($complete_pdf); //output html to browser for debug
|
82 |
|
83 |
require_once( WooCommerce_PDF_Invoices::$plugin_path . "lib/dompdf/dompdf_config.inc.php" );
|
includes/class-wcpdf-settings.php
CHANGED
@@ -629,7 +629,7 @@ if ( ! class_exists( 'WooCommerce_PDF_Invoices_Settings' ) ) {
|
|
629 |
if ( isset( $input[$key] ) ) {
|
630 |
|
631 |
// Strip all HTML and PHP tags and properly handle quoted strings.
|
632 |
-
$output[$key] = strip_tags(
|
633 |
|
634 |
// Or alternatively: don't strip HTML! :o)
|
635 |
//$output[$key] = stripslashes( $input[$key] );
|
629 |
if ( isset( $input[$key] ) ) {
|
630 |
|
631 |
// Strip all HTML and PHP tags and properly handle quoted strings.
|
632 |
+
$output[$key] = strip_tags( $input[$key] );
|
633 |
|
634 |
// Or alternatively: don't strip HTML! :o)
|
635 |
//$output[$key] = stripslashes( $input[$key] );
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: pomegranate
|
|
3 |
Tags: woocommerce, print, pdf, bulk, packing slips, invoices, delivery notes, invoice, packing slip, export, email
|
4 |
Requires at least: 3.5 and WooCommerce 2.0
|
5 |
Tested up to: 3.8 and WooCommerce 2.1
|
6 |
-
Stable tag: 1.1.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -83,6 +83,9 @@ This usually only happens on batch actions. PDF creation is a memory intensive j
|
|
83 |
|
84 |
== Changelog ==
|
85 |
|
|
|
|
|
|
|
86 |
= 1.1.3 =
|
87 |
* Feature: PDF engine (dompdf) updated to 0.6.0 for better stability and utf-8 support.
|
88 |
* Tweak: Local server path is used for header image for better compatibility with server settings.
|
3 |
Tags: woocommerce, print, pdf, bulk, packing slips, invoices, delivery notes, invoice, packing slip, export, email
|
4 |
Requires at least: 3.5 and WooCommerce 2.0
|
5 |
Tested up to: 3.8 and WooCommerce 2.1
|
6 |
+
Stable tag: 1.1.4
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
83 |
|
84 |
== Changelog ==
|
85 |
|
86 |
+
= 1.1.4 =
|
87 |
+
* Fix: Template paths on windows servers were not properly saved (stripslashes), resulting in an empty output.
|
88 |
+
|
89 |
= 1.1.3 =
|
90 |
* Feature: PDF engine (dompdf) updated to 0.6.0 for better stability and utf-8 support.
|
91 |
* Tweak: Local server path is used for header image for better compatibility with server settings.
|
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.1.
|
7 |
* Author: Ewout Fernhout
|
8 |
* Author URI: http://www.wpovernight.com
|
9 |
* License: GPLv2 or later
|
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.1.4
|
7 |
* Author: Ewout Fernhout
|
8 |
* Author URI: http://www.wpovernight.com
|
9 |
* License: GPLv2 or later
|