diff --git a/admin-notice/admin-notice.php b/admin-notice/admin-notice.php index 3b84c5ade6..bf29887071 100644 --- a/admin-notice/admin-notice.php +++ b/admin-notice/admin-notice.php @@ -26,3 +26,20 @@ function () use ( $admin_notice_controller ) { do_action( 'vip_admin_notice_init', $admin_notice_controller ); } ); + +add_action( + 'vip_admin_notice_init', + function ( $admin_notice_controller ) { + $message = 'Heads up! Your site is using a deprecated plugin jetpack-force-2fa. This functionality is already included in Jetpack as of version 13.5. Please remove the plugin to avoid potential conflicts with future Jetpack updates.'; + $admin_notice_controller->add( + new Admin_Notice( + $message, + [ + new Expression_Condition( class_exists( 'Jetpack_Force_2FA' ) && class_exists( 'Jetpack' ) && defined( 'JETPACK__VERSION' ) && version_compare( JETPACK__VERSION, '13.5', '>=' ) ), + ], + 'deprecated-standalone-jetpack-2fa-plugin', + 'error' + ) + ); + } +); diff --git a/vip-jetpack/jetpack-sso-dummy.php b/vip-jetpack/jetpack-sso-dummy.php new file mode 100644 index 0000000000..94c8114a66 --- /dev/null +++ b/vip-jetpack/jetpack-sso-dummy.php @@ -0,0 +1,7 @@ +=' ) ) { + require_once __DIR__ . '/jetpack-sso-dummy.php'; + } +} );