PluginProbe
Extendify / 3.2.2
Extendify v3.2.2
3.2.2 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 All 128 releases
← All changes | bootstrap.php +30 -0 3.1.5 → 3.2.2 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;
@@ -16,8 +17,16 @@
16 17 use Extendify\Launch\Admin as LaunchAdmin;
17 18 use Extendify\AutoLaunch\Admin as AutoLaunchAdmin;
18 19 use Extendify\Library\Admin as LibraryAdmin;
19 20 use Extendify\Library\Frontend as LibraryFrontend;
21 +use Extendify\Mcp\Server as McpServer;
22 +use Extendify\Mcp\OAuth\Metadata as McpMetadata;
23 +use Extendify\Mcp\OAuth\Authorize as McpAuthorize;
24 +use Extendify\Mcp\OAuth\TokenEndpoint as McpTokenEndpoint;
25 +use Extendify\Mcp\OAuth\RegistrationEndpoint as McpRegistrationEndpoint;
26 +use Extendify\Mcp\Profile as McpProfile;
27 +use Extendify\Mcp\Lifecycle as McpLifecycle;
28 +use Extendify\Mcp\Jobs as McpJobs;
20 29 use Extendify\Agent\Frontend as AgentFrontend;
21 30 use Extendify\QuickEdit\Frontend as QuickEditFrontend;
22 31 use Extendify\PageCreator\Admin as PageCreatorAdmin;
23 32 use Extendify\PartnerData;
@@ -29,13 +38,15 @@
29 38 use Extendify\PluginNotifications\Admin as PluginNotificationsAdmin;
30 39 use Extendify\Shared\Admin as SharedAdmin;
31 40 use Extendify\Shared\DataProvider\NotificationData;
32 41 use Extendify\Shared\DataProvider\ResourceData;
42 +use Extendify\Shared\Services\BlockStyleVariations;
33 43 use Extendify\Shared\Services\ForcePluginReinstall;
34 44 use Extendify\Shared\Services\Import\ImagesImporter;
35 45 use Extendify\Shared\Services\PluginRedirectDisabler;
36 46 use Extendify\Shared\Services\PluginsActivation\SimplyBook;
37 47 use Extendify\Shared\Services\VersionMigrator;
48 +use Extendify\SiteVisibility;
38 49
39 50 if (!defined('EXTENDIFY_REQUIRED_CAPABILITY')) {
40 51 define('EXTENDIFY_REQUIRED_CAPABILITY', 'manage_options');
41 52 }
@@ -106,8 +117,11 @@
106 117
107 118 // Force-reinstall support for /wp/v2/plugins (opt-in via request header).
108 119 ForcePluginReinstall::register();
109 120
121 + // Keeps our design variation names registered so global styles can hold them.
122 + BlockStyleVariations::register();
123 +
110 124 // Their registration callback comes in unauthenticated, so this cannot sit behind the capability gate.
111 125 SimplyBook::register();
112 126
113 127 // This class will fetch and cache partner data to be used
@@ -122,9 +136,25 @@
122 136 ResourceData::scheduleCache();
123 137 NotificationData::scheduleCache();
124 138 }
125 139
140 + // A token request carries no session and would fail the capability check.
141 + if (defined('EXTENDIFY_PARTNER_ID') && !PartnerData::setting('deactivated')) {
142 + McpServer::register();
143 + McpMetadata::register();
144 + McpAuthorize::register();
145 + McpTokenEndpoint::register();
146 + McpRegistrationEndpoint::register();
147 + McpProfile::register();
148 + McpLifecycle::register();
149 + McpJobs::register();
150 + }
151 +
126 152 if (!current_user_can(EXTENDIFY_REQUIRED_CAPABILITY)) {
153 + if (!SiteVisibility::isPublished()) {
154 + new ComingSoonFrontend();
155 + }
156 +
127 157 return;
128 158 }
129 159
130 160 // The config class will collect information about the