PluginProbe
TablePress – Tables in WordPress made easy / 3.4
TablePress – Tables in WordPress made easy v3.4
3.4 3.3.4 3.3.3 3.3.2 3.3.1 trunk 1.12 1.14 1.9.2 2.0.4 2.1.7 2.1.8 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3 2.3.1 2.3.2 2.4 2.4.1 2.4.2 2.4.3 All 45 releases
← All changes | libraries/freemius/includes/entities/class-fs-user.php +13 -0 2.3 → 3.4 View file →
@@ -47,8 +47,21 @@
47 47 function __construct( $user = false ) {
48 48 parent::__construct( $user );
49 49 }
50 50
51 + /**
52 + * This method removes the deprecated 'is_beta' property from the serialized data.
53 + * Should clean up the serialized data to avoid PHP 8.2 warning on next execution.
54 + *
55 + * @return void
56 + */
57 + function __wakeup() {
58 + if ( property_exists( $this, 'is_beta' ) ) {
59 + // If we enter here, and we are running PHP 8.2, we already had the warning. But we sanitize data for next execution.
60 + unset( $this->is_beta );
61 + }
62 + }
63 +
51 64 function get_name() {
52 65 return trim( ucfirst( trim( is_string( $this->first ) ? $this->first : '' ) ) . ' ' . ucfirst( trim( is_string( $this->last ) ? $this->last : '' ) ) );
53 66 }
54 67