ActionScheduler_SimpleSchedule::__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_SimpleSchedule{}

Хуков нет.

Возвращает

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

Использование

$ActionScheduler_SimpleSchedule = new ActionScheduler_SimpleSchedule();
$ActionScheduler_SimpleSchedule->__wakeup();

Код ActionScheduler_SimpleSchedule::__wakeup() WC 8.7.0

public function __wakeup() {

	if ( is_null( $this->scheduled_timestamp ) && ! is_null( $this->timestamp ) ) {
		$this->scheduled_timestamp = $this->timestamp;
		unset( $this->timestamp );
	}
	parent::__wakeup();
}