ActionScheduler_CanceledSchedule::__wakeup()publicWC 1.0

Unserialize recurring schedules serialized/stored prior to AS 3.0.0

Prior to Action Scheduler 3.0.0, schedules used different property names to refer to equivalent data. For example, ActionScheduler_IntervalSchedule::start_timestamp was the same as ActionScheduler_SimpleSchedule::timestamp. Action Scheduler 3.0.0 aligned properties and property names for better inheritance. To maintain backward compatibility with schedules serialized and stored prior to 3.0, we need to correctly map the old property names with matching visibility.

Метод класса: ActionScheduler_CanceledSchedule{}

Хуков нет.


null. Ничего (null).


$ActionScheduler_CanceledSchedule = new ActionScheduler_CanceledSchedule();

Код ActionScheduler_CanceledSchedule::__wakeup() WC 8.9.0

public function __wakeup() {
	if ( ! is_null( $this->timestamp ) ) {
		$this->scheduled_timestamp = $this->timestamp;
		unset( $this->timestamp );