@@ -5,9 +5,17 @@ function jquery_sites() {
5
5
if ( isset ( $ sites ) )
6
6
return $ sites ;
7
7
8
- $ sites = array ( /* blog_id, cookie domain */
8
+ # Historical: Formerly hosted plugins.jquery.com
9
+ # Historical: Formerly hosted qunitjs.com
10
+ # Historical: Formerly hosted sizzlejs.com
11
+ # Historical: Formerly hosted api.qunitjs.com
12
+ # Historical: Formerly hosted books.jquery.com
13
+ # Historical: Formerly hosted events.jquery.org
14
+ # Historical: Formerly hosted irc.jquery.org.
15
+ # Historical: Formerly hosted codeorigin.jquery.com
16
+
17
+ $ sites = array (
9
18
'jquery.com ' => array (
10
- 'blog_id ' => 1 ,
11
19
'cookie_domain ' => '.jquery.com ' ,
12
20
'options ' => array (
13
21
'blogname ' => 'jQuery ' ,
@@ -23,7 +31,6 @@ function jquery_sites() {
23
31
),
24
32
),
25
33
'blog.jquery.com ' => array (
26
- 'blog_id ' => 2 ,
27
34
'cookie_domain ' => '.jquery.com ' ,
28
35
'options ' => array (
29
36
'blogname ' => 'Official jQuery Blog ' ,
@@ -37,7 +44,6 @@ function jquery_sites() {
37
44
),
38
45
),
39
46
'api.jquery.com ' => array (
40
- 'blog_id ' => 3 ,
41
47
'cookie_domain ' => '.jquery.com ' ,
42
48
'options ' => array (
43
49
'blogname ' => 'jQuery API Documentation ' ,
@@ -51,9 +57,7 @@ function jquery_sites() {
51
57
'jquery_typesense_collection ' => 'jquery_com ' ,
52
58
),
53
59
),
54
- # Historical: Database blog_id 4 is reserved for plugins.jquery.com
55
60
'learn.jquery.com ' => array (
56
- 'blog_id ' => 5 ,
57
61
'cookie_domain ' => '.jquery.com ' ,
58
62
'options ' => array (
59
63
'blogname ' => 'jQuery Learning Center ' ,
@@ -65,7 +69,6 @@ function jquery_sites() {
65
69
),
66
70
),
67
71
'jqueryui.com ' => array (
68
- 'blog_id ' => 6 ,
69
72
'cookie_domain ' => '.jqueryui.com ' ,
70
73
'options ' => array (
71
74
'blogname ' => 'jQuery UI ' ,
@@ -81,7 +84,6 @@ function jquery_sites() {
81
84
),
82
85
),
83
86
'blog.jqueryui.com ' => array (
84
- 'blog_id ' => 7 ,
85
87
'cookie_domain ' => '.jqueryui.com ' ,
86
88
'options ' => array (
87
89
'blogname ' => 'jQuery UI Blog ' ,
@@ -92,7 +94,6 @@ function jquery_sites() {
92
94
),
93
95
'api.jqueryui.com ' => array (
94
96
'subsites ' => true , // Has one level of sub-sites (api.jqueryui.com/([^/]+))
95
- 'blog_id ' => 8 ,
96
97
'cookie_domain ' => '.jqueryui.com ' ,
97
98
'options ' => array (
98
99
'blogname ' => 'jQuery UI API Documentation ' ,
@@ -108,7 +109,6 @@ function jquery_sites() {
108
109
),
109
110
),
110
111
'api.jqueryui.com/1.8 ' => array (
111
- 'blog_id ' => 17 ,
112
112
'cookie_domain ' => '.jqueryui.com ' ,
113
113
'options ' => array (
114
114
'blogname ' => 'jQuery UI 1.8 Documentation ' ,
@@ -125,7 +125,6 @@ function jquery_sites() {
125
125
),
126
126
),
127
127
'api.jqueryui.com/1.9 ' => array (
128
- 'blog_id ' => 21 ,
129
128
'cookie_domain ' => '.jqueryui.com ' ,
130
129
'options ' => array (
131
130
'blogname ' => 'jQuery UI 1.9 Documentation ' ,
@@ -142,7 +141,6 @@ function jquery_sites() {
142
141
),
143
142
),
144
143
'jquery.org ' => array (
145
- 'blog_id ' => 9 ,
146
144
'cookie_domain ' => '.jquery.org ' ,
147
145
'options ' => array (
148
146
'blogname ' => 'jQuery Foundation ' ,
@@ -153,10 +151,7 @@ function jquery_sites() {
153
151
'jquery_body_class ' => 'jquery-foundation ' ,
154
152
),
155
153
),
156
- # Historical: Database blog_id 10 is reserved for qunitjs.com.
157
- # Historical: Database blog_id 11 is reserved for sizzlejs.com.
158
154
'jquerymobile.com ' => array (
159
- 'blog_id ' => 12 ,
160
155
'cookie_domain ' => '.jquerymobile.com ' ,
161
156
'options ' => array (
162
157
'blogname ' => 'jQuery Mobile ' ,
@@ -172,7 +167,6 @@ function jquery_sites() {
172
167
),
173
168
'api.jquerymobile.com ' => array (
174
169
'subsites ' => true , // Has one level of sub-sites (api.jquerymobile.com/([^/]+))
175
- 'blog_id ' => 13 ,
176
170
'cookie_domain ' => '.jquerymobile.com ' ,
177
171
'options ' => array (
178
172
'blogname ' => 'jQuery Mobile API Documentation ' ,
@@ -187,11 +181,7 @@ function jquery_sites() {
187
181
'jquery_twitter_link ' => 'https://twitter.com/jquerymobile ' ,
188
182
),
189
183
),
190
- # Historical: Database blog_id 14 is reserved for api.qunitjs.com.
191
- # Historical: Database blog_id 15 is reserved for books.jquery.com
192
- # Historical: Database blog_id 16 is reserved for events.jquery.org
193
184
'brand.jquery.org ' => array (
194
- 'blog_id ' => 18 ,
195
185
'cookie_domain ' => '.jquery.org ' ,
196
186
'options ' => array (
197
187
'blogname ' => 'jQuery Brand Guidelines ' ,
@@ -203,7 +193,6 @@ function jquery_sites() {
203
193
),
204
194
),
205
195
'contribute.jquery.org ' => array (
206
- 'blog_id ' => 19 ,
207
196
'cookie_domain ' => '.jquery.org ' ,
208
197
'options ' => array (
209
198
'blogname ' => 'Contribute to jQuery ' ,
@@ -214,9 +203,7 @@ function jquery_sites() {
214
203
'jquery_body_class ' => 'jquery-foundation ' ,
215
204
),
216
205
),
217
- # Historical: Database blog_id 20 is reserved for irc.jquery.org.
218
206
'meetings.jquery.org ' => array (
219
- 'blog_id ' => 22 ,
220
207
'cookie_domain ' => '.jquery.org ' ,
221
208
'options ' => array (
222
209
'blogname ' => 'jQuery Meetings ' ,
@@ -227,9 +214,7 @@ function jquery_sites() {
227
214
'jquery_body_class ' => 'jquery-foundation ' ,
228
215
),
229
216
),
230
- # Historical: Database blog_id 23 is reserved for codeorigin.jquery.com
231
217
'api.jquerymobile.com/1.3 ' => array (
232
- 'blog_id ' => 24 ,
233
218
'cookie_domain ' => '.jquerymobile.com ' ,
234
219
'options ' => array (
235
220
'blogname ' => 'jQuery Mobile 1.3 Documentation ' ,
@@ -246,7 +231,6 @@ function jquery_sites() {
246
231
),
247
232
),
248
233
'api.jqueryui.com/1.10 ' => array (
249
- 'blog_id ' => 25 ,
250
234
'cookie_domain ' => '.jqueryui.com ' ,
251
235
'options ' => array (
252
236
'blogname ' => 'jQuery UI 1.10 Documentation ' ,
@@ -263,7 +247,6 @@ function jquery_sites() {
263
247
),
264
248
),
265
249
'api.jqueryui.com/1.12 ' => array (
266
- 'blog_id ' => 26 ,
267
250
'cookie_domain ' => '.jqueryui.com ' ,
268
251
'options ' => array (
269
252
'blogname ' => 'jQuery UI 1.12 Documentation ' ,
@@ -280,7 +263,6 @@ function jquery_sites() {
280
263
),
281
264
),
282
265
'api.jqueryui.com/1.11 ' => array (
283
- 'blog_id ' => 27 ,
284
266
'cookie_domain ' => '.jqueryui.com ' ,
285
267
'options ' => array (
286
268
'blogname ' => 'jQuery UI 1.11 Documentation ' ,
@@ -297,7 +279,6 @@ function jquery_sites() {
297
279
),
298
280
),
299
281
'api.jquerymobile.com/1.4 ' => array (
300
- 'blog_id ' => 28 ,
301
282
'cookie_domain ' => '.jquerymobile.com ' ,
302
283
'options ' => array (
303
284
'blogname ' => 'jQuery Mobile 1.4 Documentation ' ,
@@ -314,7 +295,6 @@ function jquery_sites() {
314
295
),
315
296
),
316
297
'releases.jquery.com ' => array (
317
- 'blog_id ' => 29 ,
318
298
'cookie_domain ' => '.jquery.com ' ,
319
299
'options ' => array (
320
300
'blogname ' => 'jQuery CDN ' ,
@@ -327,7 +307,6 @@ function jquery_sites() {
327
307
),
328
308
),
329
309
'api.jqueryui.com/1.13 ' => array (
330
- 'blog_id ' => 30 ,
331
310
'cookie_domain ' => '.jqueryui.com ' ,
332
311
'options ' => array (
333
312
'blogname ' => 'jQuery UI 1.13 Documentation ' ,
@@ -345,13 +324,6 @@ function jquery_sites() {
345
324
),
346
325
);
347
326
348
- uasort ( $ sites , function ( $ a , $ b ) {
349
- if ( $ a ['blog_id ' ] == $ b ['blog_id ' ] )
350
- die ( 'Two sites have the same blog_id. ' );
351
- if ( $ a ['blog_id ' ] > $ b ['blog_id ' ] )
352
- return 1 ;
353
- return -1 ;
354
- } );
355
327
return $ sites ;
356
328
}
357
329
0 commit comments