__wakeup() – Prevent unserializing.

You appear to be a bot. Output may be restricted

Description

Prevent unserializing.

Usage

__wakeup();

Parameters

Returns

void

Source

File name: woocommerce/includes/rest-api/Utilities/SingletonTrait.php
Lines:

1 to 4 of 4
  final public function __wakeup() {
    wc_doing_it_wrong( __FUNCTION__, __( 'Unserializing instances of this class is forbidden.', 'woocommerce' ), '4.6' );
    die();
  }
 

 View on GitHub View on Trac