Plugin Directory

Changeset 1692257


Ignore:
Timestamp:
07/07/2017 04:12:18 AM (9 years ago)
Author:
raynfall
Message:

Fix for GoodReads loading issue over HTTPS

Location:
author-showcase
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • author-showcase/tags/1.4/author_showcase.php

    r1675237 r1692257  
    22/**
    33 * @package Author_Showcase
    4  * @version 1.4
     4 * @version 1.4.1
    55 */
    66/*
     
    99Description: The Author Showcase is an all-in-one plugin for displaying an author's books on their site in a variety of convenient formats, using shortcodes or widgets.
    1010Author: Claire Ryan
    11 Version: 1.4
     11Version: 1.4.1
    1212Author URI: http://raynfall.com/
    1313License: GPL v.2
     
    301301        dbDelta($sql);
    302302    }
    303     add_option( 'buybook_db_version', '1.3.3' );
     303    add_option( 'buybook_db_version', '1.4.1' );
    304304}
    305305
  • author-showcase/tags/1.4/class_btbe_api_connections.php

    r1675237 r1692257  
    6262        $final = implode('&', $temp);
    6363        $url = 'https://' . $host . $path . '?' . $final;
    64         $response = simplexml_load_file($url);
     64        $ch = curl_init();
     65        $ch = curl_init();
     66        curl_setopt($ch, CURLOPT_URL, $url);
     67        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
     68        $output = curl_exec($ch);
     69        curl_close($ch);
     70        $response = simplexml_load_string($output);
    6571        return $response;
    6672    }
     
    6975function btbe_goodreads($isbn, $goodreads_access) {
    7076    $ch = curl_init();
    71     curl_setopt($ch, CURLOPT_URL, "http://www.goodreads.com/book/isbn?isbn=".$isbn."&key=".$goodreads_access);
     77    curl_setopt($ch, CURLOPT_URL, "https://www.goodreads.com/book/isbn?isbn=".$isbn."&key=".$goodreads_access);
    7278    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    7379    $output = curl_exec($ch);
  • author-showcase/tags/1.4/readme.txt

    r1675237 r1692257  
    55Requires at least: 4.0
    66Tested up to: 4.5
    7 Stable tag: 1.4
     7Stable tag: 1.4.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5151== Changelog ==
    5252
     53= 1.4.1 =
     54* Fixed an issue with GoodReads reviews not loading over HTTPS
     55
    5356= 1.4 =
    5457* Added French and Portuguese (Brazil) translations
  • author-showcase/trunk/author_showcase.php

    r1675237 r1692257  
    22/**
    33 * @package Author_Showcase
    4  * @version 1.4
     4 * @version 1.4.1
    55 */
    66/*
     
    99Description: The Author Showcase is an all-in-one plugin for displaying an author's books on their site in a variety of convenient formats, using shortcodes or widgets.
    1010Author: Claire Ryan
    11 Version: 1.4
     11Version: 1.4.1
    1212Author URI: http://raynfall.com/
    1313License: GPL v.2
     
    301301        dbDelta($sql);
    302302    }
    303     add_option( 'buybook_db_version', '1.3.3' );
     303    add_option( 'buybook_db_version', '1.4.1' );
    304304}
    305305
  • author-showcase/trunk/class_btbe_api_connections.php

    r1448926 r1692257  
    6262        $final = implode('&', $temp);
    6363        $url = 'https://' . $host . $path . '?' . $final;
    64         $response = simplexml_load_file($url);
     64        $ch = curl_init();
     65        $ch = curl_init();
     66        curl_setopt($ch, CURLOPT_URL, $url);
     67        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
     68        $output = curl_exec($ch);
     69        curl_close($ch);
     70        $response = simplexml_load_string($output);
    6571        return $response;
    6672    }
     
    6975function btbe_goodreads($isbn, $goodreads_access) {
    7076    $ch = curl_init();
    71     curl_setopt($ch, CURLOPT_URL, "http://www.goodreads.com/book/isbn?isbn=".$isbn."&key=".$goodreads_access);
     77    curl_setopt($ch, CURLOPT_URL, "https://www.goodreads.com/book/isbn?isbn=".$isbn."&key=".$goodreads_access);
    7278    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    7379    $output = curl_exec($ch);
  • author-showcase/trunk/readme.txt

    r1675237 r1692257  
    55Requires at least: 4.0
    66Tested up to: 4.5
    7 Stable tag: 1.4
     7Stable tag: 1.4.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5151== Changelog ==
    5252
     53= 1.4.1 =
     54* Fixed an issue with GoodReads reviews not loading over HTTPS
     55
    5356= 1.4 =
    5457* Added French and Portuguese (Brazil) translations
Note: See TracChangeset for help on using the changeset viewer.