Version Description
- 2022-08-08 =
- Fixed XSS vulnerability
- Fixed bug - filter "Orders Range" ignores space chars now
- Fixed bug - export failed if product used webp images
Download this release
Release Info
Developer | algol.plus |
Plugin | Advanced Order Export For WooCommerce |
Version | 3.3.2 |
Comparing to | |
See all releases |
Code changes from version 3.3.1 to 3.3.2
classes/FPDF/class-woe-pdf-mc-table.php
CHANGED
@@ -156,7 +156,11 @@ class WOE_PDF_MC_Table extends WOE_FPDF {
|
|
156 |
|
157 |
$type = strtoupper( pathinfo( $source, PATHINFO_EXTENSION ) );
|
158 |
|
159 |
-
|
|
|
|
|
|
|
|
|
160 |
$this->Ln( $height );
|
161 |
|
162 |
return true;
|
@@ -284,7 +288,11 @@ class WOE_PDF_MC_Table extends WOE_FPDF {
|
|
284 |
$link = isset( $data[ $i ]['link'] ) ? $data[ $i ]['link'] : "";
|
285 |
|
286 |
$type = strtoupper( pathinfo( $source, PATHINFO_EXTENSION ) );
|
287 |
-
|
|
|
|
|
|
|
|
|
288 |
|
289 |
if ( $link ) {
|
290 |
$this->Link($x + $margin, $y + $margin, $w - 2 * $margin, $h - 2 * $margin, $link);
|
156 |
|
157 |
$type = strtoupper( pathinfo( $source, PATHINFO_EXTENSION ) );
|
158 |
|
159 |
+
try {
|
160 |
+
$this->Image( $source, $x, $this->GetY(), $width, $height, $type );
|
161 |
+
} catch ( Exception $e ) {
|
162 |
+
|
163 |
+
}
|
164 |
$this->Ln( $height );
|
165 |
|
166 |
return true;
|
288 |
$link = isset( $data[ $i ]['link'] ) ? $data[ $i ]['link'] : "";
|
289 |
|
290 |
$type = strtoupper( pathinfo( $source, PATHINFO_EXTENSION ) );
|
291 |
+
try {
|
292 |
+
$this->Image( $source, $x + $margin, $y + $margin + $y_offset, $w - 2 * $margin, $image_height - 2 * $margin, $type );
|
293 |
+
} catch ( Exception $e ) {
|
294 |
+
|
295 |
+
}
|
296 |
|
297 |
if ( $link ) {
|
298 |
$this->Link($x + $margin, $y + $margin, $w - 2 * $margin, $h - 2 * $margin, $link);
|
classes/class-wc-order-export-admin.php
CHANGED
@@ -481,7 +481,7 @@ class WC_Order_Export_Admin {
|
|
481 |
if ( ! isset( $this->tabs[ $tab ] ) ) {
|
482 |
$ajax_handler = apply_filters( 'woe_global_ajax_handler', new WC_Order_Export_Ajax() );
|
483 |
if ( ! method_exists( $ajax_handler, $method ) ) {
|
484 |
-
die( sprintf( __( 'Unknown AJAX method %s', 'woo-order-export-lite' ), $method) );
|
485 |
}
|
486 |
|
487 |
$ajax_handler->$method();
|
@@ -489,7 +489,7 @@ class WC_Order_Export_Admin {
|
|
489 |
}
|
490 |
|
491 |
if ( ! method_exists( $this->tabs[ $tab ], $method ) ) {
|
492 |
-
die( sprintf( __( 'Unknown tab method %s', 'woo-order-export-lite' ), $method) );
|
493 |
}
|
494 |
|
495 |
if ( $_POST && ! check_admin_referer( 'woe_nonce', 'woe_nonce' ) ) {
|
481 |
if ( ! isset( $this->tabs[ $tab ] ) ) {
|
482 |
$ajax_handler = apply_filters( 'woe_global_ajax_handler', new WC_Order_Export_Ajax() );
|
483 |
if ( ! method_exists( $ajax_handler, $method ) ) {
|
484 |
+
die( sprintf( __( 'Unknown AJAX method %s', 'woo-order-export-lite' ), esc_html($method)) );
|
485 |
}
|
486 |
|
487 |
$ajax_handler->$method();
|
489 |
}
|
490 |
|
491 |
if ( ! method_exists( $this->tabs[ $tab ], $method ) ) {
|
492 |
+
die( sprintf( __( 'Unknown tab method %s', 'woo-order-export-lite' ), esc_html($method)) );
|
493 |
}
|
494 |
|
495 |
if ( $_POST && ! check_admin_referer( 'woe_nonce', 'woe_nonce' ) ) {
|
classes/core/class-wc-order-export-data-extractor.php
CHANGED
@@ -906,7 +906,7 @@ class WC_Order_Export_Data_Extractor {
|
|
906 |
|
907 |
if ( $settings['export_unmarked_orders'] ) {
|
908 |
$pos = "export_unmarked_orders";
|
909 |
-
$field = "woe_order_exported";
|
910 |
$left_join_order_meta[] = "LEFT JOIN {$wpdb->postmeta} AS ordermeta_cf_{$pos} ON ordermeta_cf_{$pos}.post_id = orders.ID AND ordermeta_cf_{$pos}.meta_key='$field'";
|
911 |
$order_meta_where [] = " ( ordermeta_cf_{$pos}.meta_value IS NULL ) ";
|
912 |
}
|
@@ -1144,10 +1144,10 @@ class WC_Order_Export_Data_Extractor {
|
|
1144 |
}
|
1145 |
}
|
1146 |
} else {
|
1147 |
-
if (
|
1148 |
$where[] = "orders.ID >= " . intval($settings['from_order_id']);
|
1149 |
}
|
1150 |
-
if (
|
1151 |
$where[] = "orders.ID <= " . intval($settings['to_order_id']);
|
1152 |
}
|
1153 |
}
|
906 |
|
907 |
if ( $settings['export_unmarked_orders'] ) {
|
908 |
$pos = "export_unmarked_orders";
|
909 |
+
$field = "woe_order_exported" . apply_filters("woe_exported_postfix",'');
|
910 |
$left_join_order_meta[] = "LEFT JOIN {$wpdb->postmeta} AS ordermeta_cf_{$pos} ON ordermeta_cf_{$pos}.post_id = orders.ID AND ordermeta_cf_{$pos}.meta_key='$field'";
|
911 |
$order_meta_where [] = " ( ordermeta_cf_{$pos}.meta_value IS NULL ) ";
|
912 |
}
|
1144 |
}
|
1145 |
}
|
1146 |
} else {
|
1147 |
+
if ( trim( $settings['from_order_id'] ) ) {
|
1148 |
$where[] = "orders.ID >= " . intval($settings['from_order_id']);
|
1149 |
}
|
1150 |
+
if ( trim( $settings['to_order_id'] ) ) {
|
1151 |
$where[] = "orders.ID <= " . intval($settings['to_order_id']);
|
1152 |
}
|
1153 |
}
|
classes/core/class-wc-order-export-engine.php
CHANGED
@@ -403,7 +403,7 @@ class WC_Order_Export_Engine {
|
|
403 |
|
404 |
protected static function try_mark_order( $order_id, $settings ) {
|
405 |
if ( $settings['mark_exported_orders'] ) {
|
406 |
-
update_post_meta( $order_id, 'woe_order_exported', current_time( 'timestamp' ) );
|
407 |
}
|
408 |
}
|
409 |
|
403 |
|
404 |
protected static function try_mark_order( $order_id, $settings ) {
|
405 |
if ( $settings['mark_exported_orders'] ) {
|
406 |
+
update_post_meta( $order_id, 'woe_order_exported' . apply_filters("woe_exported_postfix",''), current_time( 'timestamp' ) );
|
407 |
}
|
408 |
}
|
409 |
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: woocommerce,export,order,xls,csv,xml,woo export lite,export orders,orders
|
|
5 |
Requires PHP: 5.4.0
|
6 |
Requires at least: 4.7
|
7 |
Tested up to: 6.0
|
8 |
-
Stable tag: 3.3.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -120,7 +120,12 @@ Yes, you can email a request to aprokaev@gmail.com. We intensively develop this
|
|
120 |
|
121 |
== Changelog ==
|
122 |
|
123 |
-
= 3.3.
|
|
|
|
|
|
|
|
|
|
|
124 |
* Fixed critical bug - mode "Add coupons as X columns" exported empty product data
|
125 |
|
126 |
= 3.3.0 - 2022-05-18 =
|
5 |
Requires PHP: 5.4.0
|
6 |
Requires at least: 4.7
|
7 |
Tested up to: 6.0
|
8 |
+
Stable tag: 3.3.2
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
120 |
|
121 |
== Changelog ==
|
122 |
|
123 |
+
= 3.3.2 - 2022-08-08 =
|
124 |
+
* Fixed XSS vulnerability
|
125 |
+
* Fixed bug - filter "Orders Range" ignores space chars now
|
126 |
+
* Fixed bug - export failed if product used webp images
|
127 |
+
|
128 |
+
= 3.3.1 - 2022-05-23 =
|
129 |
* Fixed critical bug - mode "Add coupons as X columns" exported empty product data
|
130 |
|
131 |
= 3.3.0 - 2022-05-18 =
|
woo-order-export-lite.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: Export orders from WooCommerce with ease (Excel/CSV/XML/JSON supported)
|
6 |
* Author: AlgolPlus
|
7 |
* Author URI: https://algolplus.com/
|
8 |
-
* Version: 3.3.
|
9 |
* Text Domain: woo-order-export-lite
|
10 |
* Domain Path: /i18n/languages/
|
11 |
* WC requires at least: 3.0.0
|
@@ -40,7 +40,7 @@ if ( class_exists( 'WC_Order_Export_Admin' ) ) {
|
|
40 |
}
|
41 |
|
42 |
if ( ! defined( 'WOE_VERSION' ) ) {
|
43 |
-
define( 'WOE_VERSION', '3.3.
|
44 |
define( 'WOE_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
45 |
define( 'WOE_PLUGIN_BASEPATH', dirname( __FILE__ ) );
|
46 |
}
|
5 |
* Description: Export orders from WooCommerce with ease (Excel/CSV/XML/JSON supported)
|
6 |
* Author: AlgolPlus
|
7 |
* Author URI: https://algolplus.com/
|
8 |
+
* Version: 3.3.2
|
9 |
* Text Domain: woo-order-export-lite
|
10 |
* Domain Path: /i18n/languages/
|
11 |
* WC requires at least: 3.0.0
|
40 |
}
|
41 |
|
42 |
if ( ! defined( 'WOE_VERSION' ) ) {
|
43 |
+
define( 'WOE_VERSION', '3.3.2' );
|
44 |
define( 'WOE_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
45 |
define( 'WOE_PLUGIN_BASEPATH', dirname( __FILE__ ) );
|
46 |
}
|