Skip to content

Commit 8a59f8e

Browse files
committed
All: Convert mu-plugins/api-sites/ to regular WordPress plugins
1 parent 16c93e9 commit 8a59f8e

File tree

4 files changed

+43
-18
lines changed

4 files changed

+43
-18
lines changed

mu-plugins/_loader.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,8 @@
55
foreach ( (array) glob( dirname( __FILE__ ) . "/$live_domain/*.php" ) as $domain_specific_file ) {
66
require_once( $domain_specific_file );
77
}
8-
list( $subdomain ) = $live_domain = explode( '.', $live_domain );
9-
if ( count( $live_domain ) > 2 ) {
10-
foreach ( (array) glob( dirname( __FILE__ ) . "/$subdomain-sites/*.php" ) as $type_specific_file ) {
11-
require_once( $type_specific_file );
12-
}
13-
}
148
}
15-
unset( $live_domain, $subdomain, $domain_specific_file, $type_specific_file );
9+
unset( $live_domain, $domain_specific_file );
1610

1711
require_once WPMU_PLUGIN_DIR . '/relevanssi/relevanssi.php';
1812
require 'disable-emojis/disable-emojis.php';

sites.php

Lines changed: 42 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function jquery_sites() {
2929
'options' => array(
3030
'blogname' => 'jQuery Blog',
3131
'stylesheet' => 'blog-jquery-com',
32-
// 'permalink_structure' => '/%category%/%postname%/',
32+
// 'permalink_structure' => '/%category%/%postname%/',
3333
),
3434
),
3535
'api.jquery.com' => array(
@@ -40,6 +40,9 @@ function jquery_sites() {
4040
'options' => array(
4141
'blogname' => 'jQuery API Documentation',
4242
'stylesheet' => 'api.jquery.com',
43+
'active_plugins' => array(
44+
'jquery-api-category-listing.php',
45+
),
4346
),
4447
),
4548
'plugins.jquery.com' => array(
@@ -94,7 +97,9 @@ function jquery_sites() {
9497
'options' => array(
9598
'blogname' => 'jQuery UI API Documentation',
9699
'stylesheet' => 'api.jqueryui.com',
97-
'active_plugins' => array(),
100+
'active_plugins' => array(
101+
'jquery-api-category-listing.php',
102+
),
98103
),
99104
),
100105
'api.jqueryui.com/1.8' => array(
@@ -105,7 +110,10 @@ function jquery_sites() {
105110
'options' => array(
106111
'blogname' => 'jQuery UI 1.8 Documentation',
107112
'stylesheet' => 'api.jqueryui.com',
108-
'active_plugins' => array(),
113+
'active_plugins' => array(
114+
'jquery-api-category-listing.php',
115+
'jquery-api-versioned-links.php',
116+
),
109117
),
110118
),
111119
'api.jqueryui.com/1.9' => array(
@@ -116,7 +124,10 @@ function jquery_sites() {
116124
'options' => array(
117125
'blogname' => 'jQuery UI 1.9 Documentation',
118126
'stylesheet' => 'api.jqueryui.com',
119-
'active_plugins' => array(),
127+
'active_plugins' => array(
128+
'jquery-api-category-listing.php',
129+
'jquery-api-versioned-links.php',
130+
),
120131
),
121132
),
122133
'jquery.org' => array(
@@ -154,7 +165,9 @@ function jquery_sites() {
154165
'options' => array(
155166
'blogname' => 'jQuery Mobile API Documentation',
156167
'stylesheet' => 'api.jquerymobile.com',
157-
'active_plugins' => array(),
168+
'active_plugins' => array(
169+
'jquery-api-category-listing.php',
170+
),
158171
),
159172
),
160173
# Historical: Database blog_id 14 is reserved for api.qunitjs.com.
@@ -219,7 +232,10 @@ function jquery_sites() {
219232
'options' => array(
220233
'blogname' => 'jQuery Mobile 1.3 Documentation',
221234
'stylesheet' => 'api.jquerymobile.com',
222-
'active_plugins' => array(),
235+
'active_plugins' => array(
236+
'jquery-api-category-listing.php',
237+
'jquery-api-versioned-links.php',
238+
),
223239
),
224240
),
225241
'api.jqueryui.com/1.10' => array(
@@ -230,7 +246,10 @@ function jquery_sites() {
230246
'options' => array(
231247
'blogname' => 'jQuery UI 1.10 Documentation',
232248
'stylesheet' => 'api.jqueryui.com',
233-
'active_plugins' => array(),
249+
'active_plugins' => array(
250+
'jquery-api-category-listing.php',
251+
'jquery-api-versioned-links.php',
252+
),
234253
),
235254
),
236255
'api.jqueryui.com/1.12' => array(
@@ -241,7 +260,10 @@ function jquery_sites() {
241260
'options' => array(
242261
'blogname' => 'jQuery UI 1.12 Documentation',
243262
'stylesheet' => 'api.jqueryui.com',
244-
'active_plugins' => array(),
263+
'active_plugins' => array(
264+
'jquery-api-category-listing.php',
265+
'jquery-api-versioned-links.php',
266+
),
245267
),
246268
),
247269
'api.jqueryui.com/1.11' => array(
@@ -252,7 +274,10 @@ function jquery_sites() {
252274
'options' => array(
253275
'blogname' => 'jQuery UI 1.11 Documentation',
254276
'stylesheet' => 'api.jqueryui.com',
255-
'active_plugins' => array(),
277+
'active_plugins' => array(
278+
'jquery-api-category-listing.php',
279+
'jquery-api-versioned-links.php',
280+
),
256281
),
257282
),
258283
'api.jquerymobile.com/1.4' => array(
@@ -263,7 +288,10 @@ function jquery_sites() {
263288
'options' => array(
264289
'blogname' => 'jQuery Mobile 1.4 Documentation',
265290
'stylesheet' => 'api.jquerymobile.com',
266-
'active_plugins' => array(),
291+
'active_plugins' => array(
292+
'jquery-api-category-listing.php',
293+
'jquery-api-versioned-links.php',
294+
),
267295
),
268296
),
269297
'releases.jquery.com' => array(
@@ -286,7 +314,10 @@ function jquery_sites() {
286314
'options' => array(
287315
'blogname' => 'jQuery UI 1.13 Documentation',
288316
'stylesheet' => 'api.jqueryui.com',
289-
'active_plugins' => array(),
317+
'active_plugins' => array(
318+
'jquery-api-category-listing.php',
319+
'jquery-api-versioned-links.php',
320+
),
290321
),
291322
),
292323
);

0 commit comments

Comments
 (0)