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 +25 -0 3.1.33.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;
@@ -20,17 +21,24 @@
20 21 use Extendify\Agent\Frontend as AgentFrontend;
21 22 use Extendify\QuickEdit\Frontend as QuickEditFrontend;
22 23 use Extendify\PageCreator\Admin as PageCreatorAdmin;
23 24 use Extendify\PartnerData;
25 +use Extendify\Notifications\Admin as NotificationsAdmin;
26 +use Extendify\Notifications\Frontend as NotificationsFrontend;
24 27 use Extendify\Toolbar\Admin as ToolbarAdmin;
25 28 use Extendify\Toolbar\Frontend as ToolbarFrontend;
26 29 use Extendify\Recommendations\Admin as RecommendationsAdmin;
27 30 use Extendify\PluginNotifications\Admin as PluginNotificationsAdmin;
28 31 use Extendify\Shared\Admin as SharedAdmin;
32 +use Extendify\Shared\DataProvider\NotificationData;
29 33 use Extendify\Shared\DataProvider\ResourceData;
34 +use Extendify\Shared\Services\BlockStyleVariations;
35 +use Extendify\Shared\Services\ForcePluginReinstall;
30 36 use Extendify\Shared\Services\Import\ImagesImporter;
31 37 use Extendify\Shared\Services\PluginRedirectDisabler;
38 +use Extendify\Shared\Services\PluginsActivation\SimplyBook;
32 39 use Extendify\Shared\Services\VersionMigrator;
40 +use Extendify\SiteVisibility;
33 41
34 42 if (!defined('EXTENDIFY_REQUIRED_CAPABILITY')) {
35 43 define('EXTENDIFY_REQUIRED_CAPABILITY', 'manage_options');
36 44 }
@@ -98,8 +106,17 @@
98 106
99 107 // Run various database updates depending on the plugin version.
100 108 new VersionMigrator();
101 109
110 + // Force-reinstall support for /wp/v2/plugins (opt-in via request header).
111 + ForcePluginReinstall::register();
112 +
113 + // Keeps our design variation names registered so global styles can hold them.
114 + BlockStyleVariations::register();
115 +
116 + // Their registration callback comes in unauthenticated, so this cannot sit behind the capability gate.
117 + SimplyBook::register();
118 +
102 119 // This class will fetch and cache partner data to be used
103 120 // throughout every class below. If opt in.
104 121 new PartnerData();
105 122
@@ -108,11 +125,16 @@
108 125
109 126 // Set up scheduled cache (if opt-in and active).
110 127 if (!PartnerData::setting('deactivated')) {
111 128 ResourceData::scheduleCache();
129 + NotificationData::scheduleCache();
112 130 }
113 131
114 132 if (!current_user_can(EXTENDIFY_REQUIRED_CAPABILITY)) {
133 + if (!SiteVisibility::isPublished()) {
134 + new ComingSoonFrontend();
135 + }
136 +
115 137 return;
116 138 }
117 139
118 140 // The config class will collect information about the
@@ -183,8 +205,11 @@
183 205
184 206 if (PartnerData::setting('showProductRecommendations') || constant('EXTENDIFY_DEVMODE')) {
185 207 new RecommendationsAdmin();
186 208 }
209 +
210 + new NotificationsAdmin();
211 + new NotificationsFrontend();
187 212
188 213 if (PartnerData::setting('showDraft') || constant('EXTENDIFY_DEVMODE')) {
189 214 new DraftAdmin();
190 215 }