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-site.php +45 -6 2.4.1 → 3.4 View file →
@@ -9,12 +9,8 @@
9 9 if ( ! defined( 'ABSPATH' ) ) {
10 10 exit;
11 11 }
12 12
13 - /**
14 - * @property int $blog_id
15 - */
16 - #[AllowDynamicProperties]
17 13 class FS_Site extends FS_Scope_Entity {
18 14 /**
19 15 * @var number
20 16 */
@@ -19,8 +15,12 @@
19 15 * @var number
20 16 */
21 17 public $site_id;
22 18 /**
19 + * @var int
20 + */
21 + public $blog_id;
22 + /**
23 23 * @var number
24 24 */
25 25 public $plugin_id;
26 26 /**
@@ -181,8 +181,9 @@
181 181 // WPEngine staging.
182 182 fs_ends_with( $subdomain, '.staging.wpengine.com' ) ||
183 183 fs_ends_with( $subdomain, '.dev.wpengine.com' ) ||
184 184 fs_ends_with( $subdomain, '.wpengine.com' ) ||
185 + fs_ends_with( $subdomain, '.wpenginepowered.com' ) ||
185 186 // Pantheon
186 187 ( fs_ends_with( $subdomain, 'pantheonsite.io' ) &&
187 188 ( fs_starts_with( $subdomain, 'test-' ) || fs_starts_with( $subdomain, 'dev-' ) ) ) ||
188 189 // Cloudways
@@ -188,9 +189,9 @@
188 189 // Cloudways
189 190 fs_ends_with( $subdomain, '.cloudwaysapps.com' ) ||
190 191 // Kinsta
191 192 (
192 - ( fs_starts_with( $subdomain, 'staging-' ) || fs_starts_with( $subdomain, 'env-' ) ) &&
193 + ( fs_starts_with( $subdomain, 'stg-' ) || fs_starts_with( $subdomain, 'staging-' ) || fs_starts_with( $subdomain, 'env-' ) ) &&
193 194 ( fs_ends_with( $subdomain, '.kinsta.com' ) || fs_ends_with( $subdomain, '.kinsta.cloud' ) )
194 195 ) ||
195 196 // DesktopServer
196 197 fs_ends_with( $subdomain, '.dev.cc' ) ||
@@ -200,10 +201,48 @@
200 201 ( fs_ends_with( $subdomain, '.tempurl.host' ) || fs_ends_with( $subdomain, '.wpmudev.host' ) ) ||
201 202 // Vendasta
202 203 ( fs_ends_with( $subdomain, '.websitepro-staging.com' ) || fs_ends_with( $subdomain, '.websitepro.hosting' ) ) ||
203 204 // InstaWP
204 - fs_ends_with( $subdomain, '.instawp.xyz' )
205 + ( fs_ends_with( $subdomain, '.instawp.co' ) || fs_ends_with( $subdomain, '.instawp.link' ) || fs_ends_with( $subdomain, '.instawp.xyz' ) ) ||
206 + // 10Web Hosting
207 + ( fs_ends_with( $subdomain, '-dev.10web.site' ) || fs_ends_with( $subdomain, '-dev.10web.cloud' ) )
205 208 );
209 + }
210 +
211 + /**
212 + * @author Leo Fajardo (@leorw)
213 + * @since 2.9.1
214 + *
215 + * @param string $host
216 + *
217 + * @return bool
218 + */
219 + static function is_playground_wp_environment_by_host( $host ) {
220 + // Services aimed at providing a WordPress sandbox environment.
221 + $sandbox_wp_environment_domains = array(
222 + // InstaWP
223 + 'instawp.co',
224 + 'instawp.link',
225 + 'instawp.xyz',
226 +
227 + // TasteWP
228 + 'tastewp.com',
229 +
230 + // WordPress Playground
231 + 'playground.wordpress.net',
232 + );
233 +
234 + foreach ( $sandbox_wp_environment_domains as $domain) {
235 + if (
236 + ( $host === $domain ) ||
237 + fs_ends_with( $host, '.' . $domain ) ||
238 + fs_ends_with( $host, '-' . $domain )
239 + ) {
240 + return true;
241 + }
242 + }
243 +
244 + return false;
206 245 }
207 246
208 247 function is_localhost() {
209 248 return ( WP_FS__IS_LOCALHOST_FOR_SERVER || self::is_localhost_by_address( $this->url ) );