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-entity.php +14 -4 1.13.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' ) ) {
@@ -41,11 +41,11 @@
41 41 /**
42 42 * @param bool|object $entity
43 43 */
44 44 function __construct( $entity = false ) {
45 - if ( ! ( $entity instanceof stdClass ) ) {
46 - return;
47 - }
45 + if ( ! ( $entity instanceof stdClass ) && ! ( $entity instanceof FS_Entity ) ) {
46 + return;
47 + }
48 48
49 49 $props = fs_get_object_public_vars( $this );
50 50
51 51 foreach ( $props as $key => $def_value ) {
@@ -145,5 +145,15 @@
145 145 */
146 146 static function is_valid_id($id){
147 147 return is_numeric($id);
148 148 }
149 +
150 + /**
151 + * @author Leo Fajardo (@leorw)
152 + * @since 2.3.1
153 + *
154 + * @return string
155 + */
156 + public static function get_class_name() {
157 + return get_called_class();
158 + }
149 159 }