Plugin Directory

Changeset 3114623


Ignore:
Timestamp:
07/09/2024 01:43:23 AM (21 months ago)
Author:
expantours
Message:

fix api call when fails

Location:
expan-pro/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • expan-pro/trunk/index.php

    r3114618 r3114623  
    44 * Plugin URI: https://www.expan.cl
    55 * Description: This plugin is designed to use the Expan Pro service associated with your user account created by Expan Tours.
    6  * Version: 2.5
     6 * Version: 2.6
    77 * Author: Expan Team
    88 * Text Domain: expanpro
     
    5757
    5858          // Verificar que el cuerpo es un JSON válido
    59           if(json_last_error() === JSON_ERROR_NONE) {
     59          if(json_last_error() === JSON_ERROR_NONE && isset($json_body['trip_plans'])) {
    6060              set_transient('expanpro-'.$attsstring, $remote, 3600*12);
    6161          }
  • expan-pro/trunk/readme.txt

    r3114618 r3114623  
    55Tested up to: 6.5.2
    66Requires PHP: 5.6
    7 Stable tag: 2.1
     7Stable tag: 2.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8787== Changelog ==
    8888
     89= 2.6 =
     90* Fixed transcient when api fails
     91
    8992= 2.5 =
    9093* Fixed transcient when api fails
Note: See TracChangeset for help on using the changeset viewer.