Changeset 3134115
- Timestamp:
- 08/12/2024 10:42:07 AM (20 months ago)
- Location:
- eventilla-events/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (2 diffs)
-
eventilla-wp.php (modified) (2 diffs)
-
includes/class-eventilla-wp-api-request-v2.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
eventilla-events/trunk/README.txt
r3092095 r3134115 4 4 Tags: events, event 5 5 Requires at least: 6.0 6 Tested up to: 6. 5.26 Tested up to: 6.6.1 7 7 Requires PHP: 7.4 8 Stable tag: 1.8. 18 Stable tag: 1.8.2 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.8.2 = 49 Removed die()-functions in favour of error logging. 48 50 = 1.8.1 = 49 51 Fixed warnings and deprecated code. -
eventilla-events/trunk/eventilla-wp.php
r3092095 r3134115 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.8. 118 * Version: 1.8.2 19 19 * Author: Eventilla 20 20 * Author URI: http://www.eventilla.com … … 27 27 // If this file is called directly, abort. 28 28 if ( ! defined( 'WPINC' ) ) { 29 die;29 exit; 30 30 } 31 31 -
eventilla-events/trunk/includes/class-eventilla-wp-api-request-v2.php
r3086391 r3134115 1671 1671 $this->delete_unsync_events(['fake-id']); 1672 1672 update_option('eventilla_opt_delete_all_events', false, false); 1673 die("\nAll events deleted.\n"); 1673 error_log("\nAll events deleted.\n"); 1674 return; 1674 1675 } 1675 1676 … … 1689 1690 if($pause) { 1690 1691 update_option('eventilla_opt_abort', true, false); 1691 die("\nProcessing paused.\n"); 1692 error_log("\nProcessing paused.\n"); 1693 return; 1692 1694 } 1693 1695 … … 1697 1699 $next_time = $interval * 60 + (int) $synced; 1698 1700 if(time() < $next_time) { 1699 die("\nSleeping until:" . date('Y-m-d H:i:s',$next_time)."\n"); 1701 error_log("\nSleeping until:" . date('Y-m-d H:i:s',$next_time)."\n"); 1702 return; 1700 1703 } 1701 1704 } … … 1781 1784 update_option('eventilla_opt_is_processing', false, false); 1782 1785 update_option('eventilla_opt_abort', false, false); 1783 die("\nProcess aborted because of option change at admin panel!"); 1786 error_log("\nProcess aborted because of option change at admin panel!"); 1787 return; 1784 1788 } 1785 1789 echo "Processing event: " . $event->id . "\n"; … … 1855 1859 update_option('eventilla_opt_is_processing', false, false); 1856 1860 update_option('eventilla_opt_abort', false, false); 1857 die("\nProcess aborted because of option change at admin panel!"); 1861 error_log("\nProcess aborted because of option change at admin panel!"); 1862 return; 1858 1863 } 1859 1864 $event_from_api = json_encode(array('event'=>$event));
Note: See TracChangeset
for help on using the changeset viewer.