Changeset 1707264
- Timestamp:
- 08/02/2017 10:00:35 PM (9 years ago)
- Location:
- shopsite-plugin/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
shopsite.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shopsite-plugin/trunk/readme.txt
r1707262 r1707264 26 26 27 27 == Changelog == 28 = 1.5.6 = 29 * Test with WordPress 4.8.1 30 28 31 = 1.5.5 = 29 32 * Remove call to a jQuery 1.7 function; update WordPress version -
shopsite-plugin/trunk/shopsite.php
r1159065 r1707264 2 2 /** 3 3 * @package ShopSite 4 * @version 1.5. 54 * @version 1.5.6 5 5 */ 6 6 /* … … 9 9 Description: ShopSite plugin to put products into your WordPress blog 10 10 Author: ShopSite 11 Version: 1.5. 511 Version: 1.5.6 12 12 Author URI: http://shopsite.com/ 13 13 */ … … 447 447 ); 448 448 449 //debug_print(print_r($products_xml,true));449 debug_print(print_r(html_entity_decode($products_xml['data']),true)); 450 450 451 451 if (!$products_xml['success']) { … … 455 455 } 456 456 $products_ar = array(); 457 458 $products = new SimpleXMLElement($products_xml['data']); 457 //html_entity_decode($string, ENT_QUOTES, "utf-8"); 458 //libxml_use_internal_errors(1); 459 libxml_disable_entity_loader(false); 460 //$products = simplexml_load_string(html_entity_decode($products_xml['data'], ENT_QUOTES, "ISO-8859-1")); 461 //$products = simplexml_load_string($products_xml['data']); 462 $products = simplexml_load_string($products_xml['data'], 'SimpleXMLElement', LIBXML_NOENT); 459 463 if (count($products->Products->Product) > 0) { 460 464 foreach ($products->Products->Product as $product) { … … 471 475 array_merge(array('clientApp'=>'1', 'dbname'=>'products', 'version'=>'11.2', 'fields'=>'|Product GUID|Name|SKU|Graphic|', 'limit'=>$limit), $search_array) 472 476 ); 473 $products = new SimpleXMLElement($products_xml['data']);477 $products = /*new SimpleXMLElement*/simplexml_load_string ($products_xml['data'], 'SimpleXMLElement'); 474 478 if (count($products->Products->Product) > 0) { 475 479 foreach ($products->Products->Product as $product) {
Note: See TracChangeset
for help on using the changeset viewer.