PluginProbe
Buttonizer – Floating Menus, Sticky Buttons, & Popup Builder / 3.6.0
Buttonizer – Floating Menus, Sticky Buttons, & Popup Builder v3.6.0
3.6.0 3.5.0 trunk 1.0.10 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.6.1 1.0.7 1.0.8 1.0.9 1.1 1.1.1 1.2 1.3 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.5 1.5.1 All 110 releases
← All changes | freemius/includes/entities/class-fs-user.php +26 -2 1.33.6.0 View file →
@@ -1,9 +1,9 @@
1 1 <?php
2 2 /**
3 3 * @package Freemius
4 4 * @copyright Copyright (c) 2015, Freemius, Inc.
5 - * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
5 + * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6 6 * @since 1.0.3
7 7 */
8 8
9 9 if ( ! defined( 'ABSPATH' ) ) {
@@ -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
@@ -55,8 +68,19 @@
55 68 function is_verified() {
56 69 return ( isset( $this->is_verified ) && true === $this->is_verified );
57 70 }
58 71
59 - static function get_type() {
72 + /**
73 + * @author Leo Fajardo (@leorw)
74 + * @since 2.4.2
75 + *
76 + * @return bool
77 + */
78 + function is_beta() {
79 + // Return `false` since this is just for backward compatibility.
80 + return false;
81 + }
82 +
83 + static function get_type() {
60 84 return 'user';
61 85 }
62 86 }