PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-beta
Jetpack – WP Security, Backup, Speed, & Growth v16.3-beta
16.3-beta 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 All 507 releases
← All changes | jetpack_vendor/automattic/jetpack-masterbar/src/admin-menu/load.php +19 -0 16.2 → 16.3-beta View file →
@@ -52,8 +52,18 @@
52 52 $is_difm_lite_in_progress = wpcomsh_is_site_sticker_active( 'difm-lite-in-progress' );
53 53 $is_support_session = defined( 'WPCOM_SUPPORT_SESSION' ) && WPCOM_SUPPORT_SESSION;
54 54 if ( $is_difm_lite_in_progress && ! $is_support_session ) {
55 55 require_once __DIR__ . '/class-domain-only-admin-menu.php';
56 +
57 + // While the content form is still open the customer needs to read
58 + // their own Posts, Media and Pages to fill it in. The sticker is
59 + // absent for builds that predate it and whenever wpcom has not set
60 + // it, so the fallback is the existing full lockout.
61 + if ( wpcomsh_is_site_sticker_active( 'difm-lite-awaiting-content' ) ) {
62 + require_once __DIR__ . '/class-difm-lite-admin-menu.php';
63 + return DIFM_Lite_Admin_Menu::class;
64 + }
65 +
56 66 return Domain_Only_Admin_Menu::class;
57 67 }
58 68
59 69 require_once __DIR__ . '/class-atomic-admin-menu.php';
@@ -77,8 +87,17 @@
77 87 $is_difm_lite_in_progress = has_blog_sticker( 'difm-lite-in-progress' );
78 88 $is_support_session = defined( 'WPCOM_SUPPORT_SESSION' ) && WPCOM_SUPPORT_SESSION;
79 89 if ( $is_difm_lite_in_progress && ! $is_support_session ) {
80 90 require_once __DIR__ . '/class-domain-only-admin-menu.php';
91 +
92 + // See the Atomic branch above: pre-submit the customer keeps access
93 + // to their own content, and an absent sticker falls back to the
94 + // existing full lockout.
95 + if ( has_blog_sticker( 'difm-lite-awaiting-content' ) ) {
96 + require_once __DIR__ . '/class-difm-lite-admin-menu.php';
97 + return DIFM_Lite_Admin_Menu::class;
98 + }
99 +
81 100 return Domain_Only_Admin_Menu::class;
82 101 }
83 102
84 103 // Rest of simple sites.