PluginProbe
PayPlug for WooCommerce (Official) / 2.9.0
PayPlug for WooCommerce (Official) v2.9.0
3.0.0 2.18.0 1.0.17 1.0.18 1.0.19 1.0.20 1.0.21 1.0.22 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.1.0 1.10.0 1.10.1 1.2.1 1.2.10 1.2.11 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 All 101 releases
← All changes | lib/libphonenumber/PhoneNumber.php +12 -2 1.2.52.9.0 View file →
@@ -564,9 +564,9 @@
564 564 * @inheritDoc
565 565 */
566 566 public function serialize()
567 567 {
568 - return serialize(
568 + return __serialize(
569 569 array(
570 570 $this->countryCode,
571 571 $this->nationalNumber,
572 572 $this->extension,
@@ -583,9 +583,9 @@
583 583 * @inheritDoc
584 584 */
585 585 public function unserialize($serialized)
586 586 {
587 - $data = unserialize($serialized);
587 + $data = __unserialize($serialized);
588 588
589 589 list(
590 590 $this->countryCode,
591 591 $this->nationalNumber,
@@ -600,5 +600,15 @@
600 600 if ($this->numberOfLeadingZeros > 1) {
601 601 $this->hasNumberOfLeadingZeros = true;
602 602 }
603 603 }
604 +
605 + public function __serialize() {
606 + return get_object_vars( $this );
607 + }
608 +
609 + public function __unserialize( $data ) {
610 + foreach ( $data as $key => $value ) {
611 + $this->$key = $value;
612 + }
613 + }
604 614 }