Changeset 3114618
- Timestamp:
- 07/09/2024 01:08:03 AM (21 months ago)
- Location:
- expan-pro
- Files:
-
- 13 added
- 2 edited
-
tags/2.4 (added)
-
tags/2.4/arrow_left.svg (added)
-
tags/2.4/arrow_right.svg (added)
-
tags/2.4/index.php (added)
-
tags/2.4/languages (added)
-
tags/2.4/languages/expanpro-es_ES.mo (added)
-
tags/2.4/languages/expanpro-es_ES.po (added)
-
tags/2.4/languages/expanpro.pot (added)
-
tags/2.4/owl (added)
-
tags/2.4/owl/owl.carousel.min.css (added)
-
tags/2.4/owl/owl.carousel.min.js (added)
-
tags/2.4/readme.txt (added)
-
tags/2.4/style.css (added)
-
trunk/index.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
expan-pro/trunk/index.php
r3077847 r3114618 4 4 * Plugin URI: https://www.expan.cl 5 5 * Description: This plugin is designed to use the Expan Pro service associated with your user account created by Expan Tours. 6 * Version: 2. 46 * Version: 2.5 7 7 * Author: Expan Team 8 8 * Text Domain: expanpro … … 52 52 { 53 53 $remote = wp_remote_get($url . '/api/share/trip_plan_api', $args); 54 if(is_array( $remote ) && ! is_wp_error( $remote )){ 55 set_transient('expanpro-'.$attsstring, $remote, 3600*12); 54 if(is_array($remote) && !is_wp_error($remote)){ 55 $body = wp_remote_retrieve_body($remote); 56 $json_body = json_decode($body, true); 57 58 // Verificar que el cuerpo es un JSON válido 59 if(json_last_error() === JSON_ERROR_NONE) { 60 set_transient('expanpro-'.$attsstring, $remote, 3600*12); 61 } 56 62 } 57 63 $response = $remote; -
expan-pro/trunk/readme.txt
r3077847 r3114618 87 87 == Changelog == 88 88 89 = 2.5 = 90 * Fixed transcient when api fails 91 89 92 = 2.4 = 90 93 * visual improvements (added vertical option)
Note: See TracChangeset
for help on using the changeset viewer.