Plugin Directory

Changeset 3134115


Ignore:
Timestamp:
08/12/2024 10:42:07 AM (20 months ago)
Author:
eventilla
Message:

Removed die()-functions in favour of error logging.

Location:
eventilla-events/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • eventilla-events/trunk/README.txt

    r3092095 r3134115  
    44Tags: events, event
    55Requires at least: 6.0
    6 Tested up to: 6.5.2
     6Tested up to: 6.6.1
    77Requires PHP: 7.4
    8 Stable tag: 1.8.1
     8Stable tag: 1.8.2
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4646
    4747== Changelog ==
     48= 1.8.2 =
     49Removed die()-functions in favour of error logging.
    4850= 1.8.1 =
    4951Fixed warnings and deprecated code.
  • eventilla-events/trunk/eventilla-wp.php

    r3092095 r3134115  
    1616 * Plugin URI:        https://www.eventilla.com/
    1717 * Description:       Eventilla Events brings your event information from eventilla.com to WordPress as custom posts.
    18  * Version:           1.8.1
     18 * Version:           1.8.2
    1919 * Author:            Eventilla
    2020 * Author URI:        http://www.eventilla.com
     
    2727// If this file is called directly, abort.
    2828if ( ! defined( 'WPINC' ) ) {
    29     die;
     29    exit;
    3030}
    3131
  • eventilla-events/trunk/includes/class-eventilla-wp-api-request-v2.php

    r3086391 r3134115  
    16711671            $this->delete_unsync_events(['fake-id']);
    16721672            update_option('eventilla_opt_delete_all_events', false, false);
    1673             die("\nAll events deleted.\n");
     1673            error_log("\nAll events deleted.\n");
     1674            return;
    16741675        }
    16751676
     
    16891690        if($pause) {
    16901691            update_option('eventilla_opt_abort', true, false);
    1691             die("\nProcessing paused.\n");
     1692            error_log("\nProcessing paused.\n");
     1693            return;
    16921694        }
    16931695
     
    16971699            $next_time = $interval * 60 + (int) $synced;
    16981700            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;
    17001703            }
    17011704        }
     
    17811784                    update_option('eventilla_opt_is_processing', false, false);
    17821785                    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;
    17841788                }
    17851789                echo "Processing event: " . $event->id . "\n";
     
    18551859                        update_option('eventilla_opt_is_processing', false, false);
    18561860                        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;
    18581863                    }
    18591864                    $event_from_api = json_encode(array('event'=>$event));
Note: See TracChangeset for help on using the changeset viewer.