Changeset 3033073
- Timestamp:
- 02/08/2024 09:57:25 AM (2 years ago)
- Location:
- eventilla-events/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (2 diffs)
-
eventilla-wp.php (modified) (1 diff)
-
includes/class-eventilla-wp-api-request-v2.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
eventilla-events/trunk/README.txt
r3023496 r3033073 3 3 Donate link: https://www.eventilla.com 4 4 Tags: events, event 5 Requires at least: 5.86 Tested up to: 6.4. 25 Requires at least: 6.0 6 Tested up to: 6.4.3 7 7 Requires PHP: 7.4 8 Stable tag: 1.7. 68 Stable tag: 1.7.7 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 46 46 47 47 == Changelog == 48 = 1.7.7 = 49 Fixed count events issue in update check. 48 50 = 1.7.6 = 49 Fixed event fetching process getting stuck if Eventilla API connection was not available 51 Fixed event fetching process getting stuck if Eventilla API connection was not available. 50 52 = 1.7.5 = 51 53 Added short description parameter to API filtering options. -
eventilla-events/trunk/eventilla-wp.php
r3023496 r3033073 16 16 * Plugin URI: https://www.eventilla.com/ 17 17 * Description: Eventilla Events brings your event information from eventilla.com to WordPress as custom posts. 18 * Version: 1.7. 618 * Version: 1.7.7 19 19 * Author: Eventilla 20 20 * Author URI: http://www.eventilla.com -
eventilla-events/trunk/includes/class-eventilla-wp-api-request-v2.php
r3023496 r3033073 858 858 $full_event_json = $this->get( 'events', $event_id ); 859 859 if (!$full_event_json) { 860 throw new RuntimeException("Event loading error");861 }862 863 $full_event = json_decode( $full_event_json );860 throw new RuntimeException("Event loading error"); 861 } 862 863 $full_event = json_decode( $full_event_json ); 864 864 if ( ! empty( $full_event->event ) ) { 865 865 $full_event = $full_event->event; … … 1686 1686 //var_dump($eventilla_json_ob); 1687 1687 //die(); 1688 update_option('eventilla_opt_queue', count($eventilla_json_ob), false); 1689 update_option('eventilla_opt_eventsdata', (array) $eventilla_json_ob, false); 1690 echo count($eventilla_json_ob) . " events added to process queue.\n"; 1691 $this->process_event_batch(); 1688 $count_of_events = is_countable($eventilla_json_ob) ? count($eventilla_json_ob) : 0; 1689 1690 if ($count_of_events) { 1691 update_option('eventilla_opt_queue', $count_of_events, false); 1692 update_option('eventilla_opt_eventsdata', (array) $eventilla_json_ob, false); 1693 echo $count_of_events . " events added to process queue.\n"; 1694 $this->process_event_batch(); 1695 } else { 1696 echo "There is nothing to process.\n"; 1697 } 1698 1692 1699 update_option('eventilla_opt_last_request_time', $time_of_batch_start); 1693 1700 } else { … … 1772 1779 error_log('Caught Runtime Exception: ' . $e->getMessage()); 1773 1780 break; 1774 } catch (Exception $e) {1781 } catch (Exception $e) { 1775 1782 // code to handle any other exception 1776 1783 $message = $e->getMessage();
Note: See TracChangeset
for help on using the changeset viewer.