Wrong check ‘schedule_event’ filter
-
class-updraftplus.php on line 3240 will return “PHP Notice: Trying to get property of non-object” if some plugins, developers or users will use ‘schedule_event’ filter to return false in certain checks to prevent scheduling event, that is documented in wp_schedule_event() function.
You need to add
if ( isset( $event->hook )orif ( is_object( $event->hook )before checking your ‘updraft_backup’ and ‘updraft_backup_database’ event hook names. Alternatively, low your ‘schedule_event’ filter to as low as possible priority.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Wrong check ‘schedule_event’ filter’ is closed to new replies.