PluginProbe
Extendify / 3.2.1
Extendify v3.2.1
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
← All changes | bootstrap.php +10 -0 3.1.53.2.1 View file →
@@ -8,8 +8,9 @@
8 8
9 9 use Extendify\AdminPageRouter;
10 10 use Extendify\Assist\Admin as AssistAdmin;
11 11 use Extendify\Agent\Admin as AgentAdmin;
12 +use Extendify\ComingSoon\Frontend as ComingSoonFrontend;
12 13 use Extendify\Config;
13 14 use Extendify\Draft\Admin as DraftAdmin;
14 15 use Extendify\HelpCenter\Admin as HelpCenterAdmin;
15 16 use Extendify\Insights;
@@ -29,13 +30,15 @@
29 30 use Extendify\PluginNotifications\Admin as PluginNotificationsAdmin;
30 31 use Extendify\Shared\Admin as SharedAdmin;
31 32 use Extendify\Shared\DataProvider\NotificationData;
32 33 use Extendify\Shared\DataProvider\ResourceData;
34 +use Extendify\Shared\Services\BlockStyleVariations;
33 35 use Extendify\Shared\Services\ForcePluginReinstall;
34 36 use Extendify\Shared\Services\Import\ImagesImporter;
35 37 use Extendify\Shared\Services\PluginRedirectDisabler;
36 38 use Extendify\Shared\Services\PluginsActivation\SimplyBook;
37 39 use Extendify\Shared\Services\VersionMigrator;
40 +use Extendify\SiteVisibility;
38 41
39 42 if (!defined('EXTENDIFY_REQUIRED_CAPABILITY')) {
40 43 define('EXTENDIFY_REQUIRED_CAPABILITY', 'manage_options');
41 44 }
@@ -106,8 +109,11 @@
106 109
107 110 // Force-reinstall support for /wp/v2/plugins (opt-in via request header).
108 111 ForcePluginReinstall::register();
109 112
113 + // Keeps our design variation names registered so global styles can hold them.
114 + BlockStyleVariations::register();
115 +
110 116 // Their registration callback comes in unauthenticated, so this cannot sit behind the capability gate.
111 117 SimplyBook::register();
112 118
113 119 // This class will fetch and cache partner data to be used
@@ -123,8 +129,12 @@
123 129 NotificationData::scheduleCache();
124 130 }
125 131
126 132 if (!current_user_can(EXTENDIFY_REQUIRED_CAPABILITY)) {
133 + if (!SiteVisibility::isPublished()) {
134 + new ComingSoonFrontend();
135 + }
136 +
127 137 return;
128 138 }
129 139
130 140 // The config class will collect information about the