Plugin Directory

Changeset 1707264


Ignore:
Timestamp:
08/02/2017 10:00:35 PM (9 years ago)
Author:
ShopSite
Message:

Test with WP 4.8.1

Location:
shopsite-plugin/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • shopsite-plugin/trunk/readme.txt

    r1707262 r1707264  
    2626
    2727== Changelog ==
     28= 1.5.6 =
     29* Test with WordPress 4.8.1
     30
    2831= 1.5.5 =
    2932* Remove call to a jQuery 1.7 function; update WordPress version
  • shopsite-plugin/trunk/shopsite.php

    r1159065 r1707264  
    22/**
    33 * @package ShopSite
    4  * @version 1.5.5
     4 * @version 1.5.6
    55 */
    66/*
     
    99Description: ShopSite plugin to put products into your WordPress blog
    1010Author: ShopSite
    11 Version: 1.5.5
     11Version: 1.5.6
    1212Author URI: http://shopsite.com/
    1313*/
     
    447447  );
    448448 
    449   //debug_print(print_r($products_xml,true));
     449  debug_print(print_r(html_entity_decode($products_xml['data']),true));
    450450 
    451451  if (!$products_xml['success']) {
     
    455455  }
    456456  $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);
    459463  if (count($products->Products->Product) > 0) {
    460464    foreach ($products->Products->Product as $product) {
     
    471475      array_merge(array('clientApp'=>'1', 'dbname'=>'products', 'version'=>'11.2', 'fields'=>'|Product GUID|Name|SKU|Graphic|', 'limit'=>$limit), $search_array)
    472476    );
    473     $products = new SimpleXMLElement($products_xml['data']);
     477    $products = /*new SimpleXMLElement*/simplexml_load_string ($products_xml['data'], 'SimpleXMLElement');
    474478    if (count($products->Products->Product) > 0) {
    475479      foreach ($products->Products->Product as $product) {
Note: See TracChangeset for help on using the changeset viewer.