PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 8.2
Jetpack – WP Security, Backup, Speed, & Growth v8.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 13.9.2 14.0.1 14.1.1 14.2.2 14.3.1 All 501 releases
← All changes | class.jetpack-cli.php +5 -2 8.1.48.2 View file →
@@ -903,13 +903,16 @@
903 903 if ( doing_action( 'jetpack_user_authorized' ) || Jetpack::is_active() ) {
904 904 WP_CLI::error( __( 'Jetpack sync is not currently allowed for this site. Jetpack is not connected.', 'jetpack' ) );
905 905 return;
906 906 }
907 - if ( ( new Status() )->is_development_mode() ) {
907 +
908 + $status = new Status();
909 +
910 + if ( $status->is_development_mode() ) {
908 911 WP_CLI::error( __( 'Jetpack sync is not currently allowed for this site. The site is in development mode.', 'jetpack' ) );
909 912 return;
910 913 }
911 - if ( Jetpack::is_staging_site() ) {
914 + if ( $status->is_staging_site() ) {
912 915 WP_CLI::error( __( 'Jetpack sync is not currently allowed for this site. The site is in staging mode.', 'jetpack' ) );
913 916 return;
914 917 }
915 918 }