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. Ничего.


$ActionScheduler_SimpleSchedule = new ActionScheduler_SimpleSchedule();

Код ActionScheduler_SimpleSchedule::__wakeup() WC 6.9.4

public function __wakeup() {

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