Version Description
Reverted to DOM for Facebook / Instagram feeds as Facebook, all of a sudden, requires preservation of line-breaks
Download this release
Release Info
Developer | jorisverwater |
Plugin | Product Feed PRO for WooCommerce |
Version | 8.2.9 |
Comparing to | |
See all releases |
Code changes from version 8.2.8 to 8.2.9
- classes/class-get-products.php +15 -1
- readme.txt +7 -1
- woocommerce-sea.php +4 -4
classes/class-get-products.php
CHANGED
@@ -1147,7 +1147,16 @@ class WooSEA_Get_Products {
|
|
1147 |
}
|
1148 |
|
1149 |
if(is_object($xml)){
|
1150 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1151 |
}
|
1152 |
unset($products);
|
1153 |
}
|
@@ -2150,6 +2159,10 @@ class WooSEA_Get_Products {
|
|
2150 |
$product_data['description'] = trim($this->woosea_utf8_for_xml($product_data['description']));
|
2151 |
$product_data['short_description'] = trim($this->woosea_utf8_for_xml($product_data['short_description']));
|
2152 |
|
|
|
|
|
|
|
|
|
2153 |
/**
|
2154 |
* Check of we need to add Google Analytics UTM parameters
|
2155 |
*/
|
@@ -3617,6 +3630,7 @@ class WooSEA_Get_Products {
|
|
3617 |
$tmp_file = $path . "/" . sanitize_file_name($feed_config[$key]['filename']) . "_tmp." . $feed_config[$key]['fileformat'];
|
3618 |
$new_file = $path . "/" . sanitize_file_name($feed_config[$key]['filename']) . "." . $feed_config[$key]['fileformat'];
|
3619 |
|
|
|
3620 |
if (!copy($tmp_file, $new_file)) {
|
3621 |
error_log("Copy of file failed");
|
3622 |
} else {
|
1147 |
}
|
1148 |
|
1149 |
if(is_object($xml)){
|
1150 |
+
//if($feed_config['fields'] == "facebook_drm"){
|
1151 |
+
// Revert to DOM to preserve XML whitespaces and line-breaks
|
1152 |
+
$dom = dom_import_simplexml($xml)->ownerDocument;
|
1153 |
+
$dom->formatOutput = true;
|
1154 |
+
$dom->preserveWhiteSpace = false;
|
1155 |
+
$dom->loadXML( $dom->saveXML());
|
1156 |
+
$dom->save($file);
|
1157 |
+
//} else {
|
1158 |
+
// $xml->asXML($file);
|
1159 |
+
//}
|
1160 |
}
|
1161 |
unset($products);
|
1162 |
}
|
2159 |
$product_data['description'] = trim($this->woosea_utf8_for_xml($product_data['description']));
|
2160 |
$product_data['short_description'] = trim($this->woosea_utf8_for_xml($product_data['short_description']));
|
2161 |
|
2162 |
+
// Add some line breaks
|
2163 |
+
$product_data['description'] .= "<br/>";
|
2164 |
+
$product_data['short_description'] .= "<br/>";
|
2165 |
+
|
2166 |
/**
|
2167 |
* Check of we need to add Google Analytics UTM parameters
|
2168 |
*/
|
3630 |
$tmp_file = $path . "/" . sanitize_file_name($feed_config[$key]['filename']) . "_tmp." . $feed_config[$key]['fileformat'];
|
3631 |
$new_file = $path . "/" . sanitize_file_name($feed_config[$key]['filename']) . "." . $feed_config[$key]['fileformat'];
|
3632 |
|
3633 |
+
|
3634 |
if (!copy($tmp_file, $new_file)) {
|
3635 |
error_log("Copy of file failed");
|
3636 |
} else {
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ License URI: http://www.gnu.org/licenses/gpl.html
|
|
5 |
Tags: Product Feed, Google Shopping, Google Shopping Feed, WooCommerce Product Feed, WooCommerce Product Feed PRO, Bing Shopping, Bing product feed, Bing remarking, Google Merchant Feed, Google DRM Feed, Google Dynamic Remarketing Feed, Facebook feed, Google feed, Bing feed, Facebook Product Feed, Facebook Dynamic remarketing, Data Feed, WooCommerce Feed, XML product feed, CSV product feed, TSV, TXT product feed, comparison shopping engines, comparison shopping websites, vergelijk.nl, vergelijk.be, vertaa.fi, beslist.nl, kieskeurig.nl, bol.com, raketten, pricerunner, pricegrabber, Buy, leGuide, Kelkoo, Twenga, Yandex, Etsy, Dealtime, Shopzilla, Billiger, Google Product Review feed
|
6 |
Requires at least: 4.5
|
7 |
Tested up to: 5.4
|
8 |
-
Stable tag: 8.2.
|
9 |
|
10 |
== Description ==
|
11 |
|
@@ -313,6 +313,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
313 |
|
314 |
=== Changelog ===
|
315 |
|
|
|
|
|
|
|
316 |
= 8.2.8 (2020-05-30) =
|
317 |
* Added webitemid attribute to the Google Local Product Feed template
|
318 |
|
@@ -2636,6 +2639,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
2636 |
|
2637 |
== Upgrade Notice ==
|
2638 |
|
|
|
|
|
|
|
2639 |
= 8.2.8 =
|
2640 |
Added webitemid attribute to the Google Local Product Feed template
|
2641 |
|
5 |
Tags: Product Feed, Google Shopping, Google Shopping Feed, WooCommerce Product Feed, WooCommerce Product Feed PRO, Bing Shopping, Bing product feed, Bing remarking, Google Merchant Feed, Google DRM Feed, Google Dynamic Remarketing Feed, Facebook feed, Google feed, Bing feed, Facebook Product Feed, Facebook Dynamic remarketing, Data Feed, WooCommerce Feed, XML product feed, CSV product feed, TSV, TXT product feed, comparison shopping engines, comparison shopping websites, vergelijk.nl, vergelijk.be, vertaa.fi, beslist.nl, kieskeurig.nl, bol.com, raketten, pricerunner, pricegrabber, Buy, leGuide, Kelkoo, Twenga, Yandex, Etsy, Dealtime, Shopzilla, Billiger, Google Product Review feed
|
6 |
Requires at least: 4.5
|
7 |
Tested up to: 5.4
|
8 |
+
Stable tag: 8.2.9
|
9 |
|
10 |
== Description ==
|
11 |
|
313 |
|
314 |
=== Changelog ===
|
315 |
|
316 |
+
= 8.2.9 (2020-06-04) =
|
317 |
+
* Reverted to DOM for Facebook / Instagram feeds as Facebook, all of a sudden, requires preservation of line-breaks
|
318 |
+
|
319 |
= 8.2.8 (2020-05-30) =
|
320 |
* Added webitemid attribute to the Google Local Product Feed template
|
321 |
|
2639 |
|
2640 |
== Upgrade Notice ==
|
2641 |
|
2642 |
+
= 8.2.9 =
|
2643 |
+
Reverted to DOM for Facebook / Instagram feeds as Facebook, all of a sudden, requires preservation of line-breaks
|
2644 |
+
|
2645 |
= 8.2.8 =
|
2646 |
Added webitemid attribute to the Google Local Product Feed template
|
2647 |
|
woocommerce-sea.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Product Feed PRO for WooCommerce
|
4 |
-
* Version: 8.2.
|
5 |
* Plugin URI: https://www.adtribes.io/support/?utm_source=wpadmin&utm_medium=plugin&utm_campaign=woosea_product_feed_pro
|
6 |
* Description: Configure and maintain your WooCommerce product feeds for Google Shopping, Facebook, Remarketing, Bing, Yandex, Comparison shopping websites and over a 100 channels more.
|
7 |
* Author: AdTribes.io
|
@@ -16,8 +16,8 @@
|
|
16 |
* Text Domain: woo-product-feed-pro
|
17 |
* Domain Path: /languages
|
18 |
*
|
19 |
-
* WC requires at least: 3.
|
20 |
-
* WC tested up to: 4.
|
21 |
*
|
22 |
* Product Feed PRO for WooCommerce is free software: you can redistribute it and/or modify
|
23 |
* it under the terms of the GNU General Public License as published by
|
@@ -48,7 +48,7 @@ if (!defined('ABSPATH')) {
|
|
48 |
* Plugin versionnumber, please do not override.
|
49 |
* Define some constants
|
50 |
*/
|
51 |
-
define( 'WOOCOMMERCESEA_PLUGIN_VERSION', '8.2.
|
52 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
|
53 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
|
54 |
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Product Feed PRO for WooCommerce
|
4 |
+
* Version: 8.2.9
|
5 |
* Plugin URI: https://www.adtribes.io/support/?utm_source=wpadmin&utm_medium=plugin&utm_campaign=woosea_product_feed_pro
|
6 |
* Description: Configure and maintain your WooCommerce product feeds for Google Shopping, Facebook, Remarketing, Bing, Yandex, Comparison shopping websites and over a 100 channels more.
|
7 |
* Author: AdTribes.io
|
16 |
* Text Domain: woo-product-feed-pro
|
17 |
* Domain Path: /languages
|
18 |
*
|
19 |
+
* WC requires at least: 3.6
|
20 |
+
* WC tested up to: 4.2
|
21 |
*
|
22 |
* Product Feed PRO for WooCommerce is free software: you can redistribute it and/or modify
|
23 |
* it under the terms of the GNU General Public License as published by
|
48 |
* Plugin versionnumber, please do not override.
|
49 |
* Define some constants
|
50 |
*/
|
51 |
+
define( 'WOOCOMMERCESEA_PLUGIN_VERSION', '8.2.9' );
|
52 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
|
53 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
|
54 |
|