Plugin Directory

Changeset 1105356


Ignore:
Timestamp:
03/04/2015 07:27:39 PM (11 years ago)
Author:
ShopSite
Message:

Fix for PHP versions less than 5.4.

Location:
shopsite-plugin/trunk
Files:
2 edited

Legend:

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

    r1104510 r1105356  
    2626
    2727== Changelog ==
     28= 1.5.3 =
     29* Fix for PHP versions less than 5.4.
     30
    2831= 1.5.2 =
    2932* Don't require SSL verification of secure URLs.
  • shopsite-plugin/trunk/shopsite.php

    r1104510 r1105356  
    22/**
    33 * @package ShopSite
    4  * @version 1.5.2
     4 * @version 1.5.3
    55 */
    66/*
     
    99Description: ShopSite plugin to put products into your WordPress blog
    1010Author: ShopSite
    11 Version: 1.5.2
     11Version: 1.5.3
    1212Author URI: http://shopsite.com/
    1313*/
     
    5858
    5959function load_plugin() {
    60     $version = "1.5.2";
     60    $version = "1.5.3";
    6161    if ( is_admin() ) { 
    6262      $running_version = get_option('ss_version');
     
    408408    $shopsite_url = get_option('ss_shopsite_url');
    409409    $url = $shopsite_url."&operation=get_setting&setting=output_url"; 
    410     $outputurl = curl_open($url)[0];
     410    $curl_res = curl_open($url);
     411    $outputurl = $curl_res[0];
    411412    if ($outputurl && strlen($outputurl) > 10) {
    412413      $media_url = $outputurl."/media/";
     
    633634  ini_set('allow_url_fopen', $url_openable);
    634635    print(stream_get_contents($handle));*/
    635   $product_data = curl_open($url)[0];
     636  $curl_res = curl_open($url);
     637  $product_data = $curl_res[0];
    636638  if ($product_data)
    637639    print($product_data);
Note: See TracChangeset for help on using the changeset viewer.