PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.5
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.5
16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 All 506 releases
← All changes | 3rd-party/atomic.php +5 -4 12.4.2 → 16.3-a.5 View file →
@@ -9,8 +9,12 @@
9 9
10 10 use Automattic\Jetpack\Constants;
11 11 use Automattic\Jetpack\Status\Host;
12 12
13 +if ( ! defined( 'ABSPATH' ) ) {
14 + exit( 0 );
15 +}
16 +
13 17 /**
14 18 * Handles suppressing development version notices on Atomic-hosted sites.
15 19 *
16 20 * @param bool $development_version Filterable value if this is a development version of Jetpack.
@@ -20,12 +24,9 @@
20 24 function atomic_weekly_override( $development_version ) {
21 25 if ( ( new Host() )->is_atomic_platform() ) {
22 26 $haystack = Constants::get_constant( 'JETPACK__PLUGIN_DIR' );
23 27 $needle = '/jetpack-dev/';
24 - if (
25 - ( function_exists( 'str_ends_with' ) && str_ends_with( $haystack, $needle ) ) || // phpcs:ignore PHPCompatibility.FunctionUse.NewFunctions.str_ends_withFound
26 - 0 === substr_compare( $haystack, $needle, -13 )
27 - ) {
28 + if ( str_ends_with( $haystack, $needle ) ) {
28 29 return $development_version; // Returns the default response if the active Jetpack version is from the beta plugin.
29 30 }
30 31
31 32 $development_version = false; // Returns false for regular installs on Atomic.