Plugin Directory

Changeset 2716535


Ignore:
Timestamp:
04/30/2022 12:29:36 AM (4 years ago)
Author:
fsheedy
Message:

Tagging version 3.0.2

Location:
etsy-shop
Files:
2 edited
4 copied

Legend:

Unmodified
Added
Removed
  • etsy-shop/tags/3.0.2/etsy-shop.php

    r2713969 r2716535  
    99Author: Frédéric Sheedy
    1010Text Domain: etsy-shop
    11 Version: 3.0.1
     11Version: 3.0.2
    1212*/
    1313
     
    3636 */
    3737
    38 define( 'ETSY_SHOP_VERSION',  '3.0.1' );
     38define( 'ETSY_SHOP_VERSION',  '3.0.2' );
    3939define( 'ETSY_SHOP_CACHE_PREFIX', 'etsy_shop_cache_' );
    4040
     
    339339    if ( !is_wp_error( $reponse ) ) {
    340340        $data = json_decode( $reponse );
    341         if (1 != $data->count) {
    342             return  new WP_Error( 'etsy-shop', __( 'Etsy Shop: Your section ID is invalid.', 'etsy-shop' ) );
     341        if ( !isset( $data->results[0]->shop_id ) ) {
     342            return  new WP_Error( 'etsy-shop', __( 'Etsy Shop: Your shop ID is invalid.', 'etsy-shop' ) );
    343343        }
    344344        $shop_id = $data->results[0]->shop_id;
  • etsy-shop/tags/3.0.2/readme.txt

    r2713967 r2716535  
    55Tested up to: 5.9.3
    66Requires at least: 5.0
    7 Stable tag: 3.0.1
     7Stable tag: 3.0.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8585
    8686== Changelog ==
     87
     88= 3.0.2 =
     89* Workaround for a bug on Etsy Open API v3 to retrieve the Shop ID
     90* Update error message
    8791
    8892= 3.0.1 =
  • etsy-shop/trunk/etsy-shop.php

    r2713969 r2716535  
    99Author: Frédéric Sheedy
    1010Text Domain: etsy-shop
    11 Version: 3.0.1
     11Version: 3.0.2
    1212*/
    1313
     
    3636 */
    3737
    38 define( 'ETSY_SHOP_VERSION',  '3.0.1' );
     38define( 'ETSY_SHOP_VERSION',  '3.0.2' );
    3939define( 'ETSY_SHOP_CACHE_PREFIX', 'etsy_shop_cache_' );
    4040
     
    339339    if ( !is_wp_error( $reponse ) ) {
    340340        $data = json_decode( $reponse );
    341         if (1 != $data->count) {
    342             return  new WP_Error( 'etsy-shop', __( 'Etsy Shop: Your section ID is invalid.', 'etsy-shop' ) );
     341        if ( !isset( $data->results[0]->shop_id ) ) {
     342            return  new WP_Error( 'etsy-shop', __( 'Etsy Shop: Your shop ID is invalid.', 'etsy-shop' ) );
    343343        }
    344344        $shop_id = $data->results[0]->shop_id;
  • etsy-shop/trunk/readme.txt

    r2713967 r2716535  
    55Tested up to: 5.9.3
    66Requires at least: 5.0
    7 Stable tag: 3.0.1
     7Stable tag: 3.0.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8585
    8686== Changelog ==
     87
     88= 3.0.2 =
     89* Workaround for a bug on Etsy Open API v3 to retrieve the Shop ID
     90* Update error message
    8791
    8892= 3.0.1 =
Note: See TracChangeset for help on using the changeset viewer.