| @@ -43,8 +43,15 @@ | ||
| 43 | 43 | */ |
| 44 | 44 | final public function __clone() { |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | + // Prevent serialization of the instance | |
| 48 | + public function __sleep() { | |
| 49 | + _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'shopbuilder' ), '1.0' ); | |
| 50 | + die(); | |
| 51 | + } | |
| 52 | + | |
| 53 | + | |
| 47 | 54 | /** |
| 48 | 55 | * Prevent unserializing. |
| 49 | 56 | */ |
| 50 | 57 | final public function __wakeup() { |