PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.7.12
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.7.12
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 All 149 releases
← All changes | vendor/codeinwp/themeisle-sdk/src/Product.php +1 -31 3.10.23.7.12 View file →
@@ -70,14 +70,8 @@
70 70 * @var string $key The product ready key.
71 71 */
72 72 private $key;
73 73 /**
74 - * Author URL
75 - *
76 - * @var string $author_url The author url.
77 - */
78 - private $author_url;
79 - /**
80 74 * Product store url.
81 75 *
82 76 * @var string $store_url The store url.
83 77 */
@@ -112,18 +106,11 @@
112 106 * @var string $version The product version.
113 107 */
114 108 private $version;
115 109 /**
116 - * Holds a map of loaded products objects.
117 - *
118 - * @var array Array of loaded products.
119 - */
120 - private static $cached_products = [];
121 - /**
122 110 * Root api endpoint.
123 111 */
124 112 const API_URL = 'https://api.themeisle.com/';
125 -
126 113 /**
127 114 * ThemeIsle_SDK_Product constructor.
128 115 *
129 116 * @param string $basefile Product basefile.
@@ -140,27 +127,10 @@
140 127 if ( 0 === $install ) {
141 128 $install = time();
142 129 update_option( $this->get_key() . '_install', time() );
143 130 }
144 - $this->install = $install;
145 - self::$cached_products[ crc32( $basefile ) ] = $this;
146 - }
131 + $this->install = $install;
147 132
148 - /**
149 - * Return a product.
150 - *
151 - * @param string $basefile Product basefile.
152 - *
153 - * @return Product Product Object.
154 - */
155 - public static function get( $basefile ) {
156 - $key = crc32( $basefile );
157 - if ( isset( self::$cached_products[ $key ] ) ) {
158 - return self::$cached_products[ $key ];
159 - }
160 - self::$cached_products[ $key ] = new Product( $basefile );
161 -
162 - return self::$cached_products[ $key ];
163 133 }
164 134
165 135 /**
166 136 * Setup props from path.