Skip to content

Commit 88519ab

Browse files
committed
events.jquery.org: Remove theme, cross-site integration, and exclusive plugin
* Remove cross-site file inclusion for `$events` variable in mu-plugins This is in preparation for the simpler standalone WordPress instances that power the ~20 jQuery documentation sites on new hardware, where the server will not run as a single WordPress MU instance, and thus would not have the knowledge of where the other sites are located on disk or able to include files from it. The events variable has been empty in practice for a long time. When needed, we do still sometimes promote events, but we use the banners for that instead. * Remove theme The domain has been replaced with a redirect to openjsf.org in Puppet for a few years now. * Remove plugins/allow-numeric-stubs/ Not used by any other sites.
1 parent 0f498c7 commit 88519ab

25 files changed

+3
-1905
lines changed

INSTALL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ You do not need to configure your `/etc/hosts` file for `local.*` because `jquer
5151
127.0.0.1 local.jquery.com local.api.jquery.com local.blog.jquery.com local.releases.jquery.com local.learn.jquery.com local.plugins.jquery.com
5252
127.0.0.1 local.jqueryui.com local.api.jqueryui.com local.blog.jqueryui.com
5353
127.0.0.1 local.jquerymobile.com local.api.jquerymobile.com local.blog.jquerymobile.com
54-
127.0.0.1 local.jquery.org local.brand.jquery.org local.contribute.jquery.org local.events.jquery.org local.meetings.jquery.org
54+
127.0.0.1 local.jquery.org local.brand.jquery.org local.contribute.jquery.org local.meetings.jquery.org
5555
127.0.0.1 local.sizzlejs.com
5656
```
5757

LICENSE.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ The following externally maintained libraries used by this software have
1414
their own licenses; we recommend you read them, as their terms may
1515
differ from the terms above.
1616

17-
- Allow Numeric Stubs
18-
https://wordpress.org/plugins/allow-numeric-stubs/
19-
located at plugins/allow-numeric-stubs
20-
2117
- Colorbox
2218
https://www.jacklmoore.com/colorbox/
2319
located at themes/jquery/js/plugins.js

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ You do not need to configure your `/etc/hosts` file for `vagrant.*` because `jqu
6363
172.27.72.27 vagrant.jquery.com vagrant.api.jquery.com vagrant.blog.jquery.com vagrant.releases.jquery.com vagrant.learn.jquery.com vagrant.plugins.jquery.com
6464
172.27.72.27 vagrant.jqueryui.com vagrant.api.jqueryui.com vagrant.blog.jqueryui.com
6565
172.27.72.27 vagrant.jquerymobile.com vagrant.api.jquerymobile.com vagrant.blog.jquerymobile.com
66-
172.27.72.27 vagrant.jquery.org vagrant.brand.jquery.org vagrant.contribute.jquery.org vagrant.events.jquery.org agrant.meetings.jquery.org
66+
172.27.72.27 vagrant.jquery.org vagrant.brand.jquery.org vagrant.contribute.jquery.org vagrant.meetings.jquery.org
6767
172.27.72.27 vagrant.sizzlejs.com
6868
```
6969

mu-plugins/events.jquery.org/posts.php

Lines changed: 0 additions & 15 deletions
This file was deleted.

mu-plugins/jquery-actions.php

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -11,38 +11,6 @@
1111
remove_action( 'wp_head', 'wp_shortlink_wp_head', 10 );
1212
remove_action( 'template_redirect', 'wp_shortlink_header', 11 );
1313

14-
add_action( 'init', function() {
15-
global $events;
16-
17-
$events = array(
18-
'future' => array(),
19-
'past' => array(),
20-
'year' => array(),
21-
);
22-
23-
$eventsFile = gw_resources_dir(
24-
(JQUERY_STAGING ? JQUERY_STAGING_PREFIX : '') . 'events.jquery.org'
25-
) . '/events.json';
26-
$allEvents = file_exists( $eventsFile ) ?
27-
json_decode( file_get_contents( $eventsFile ) ) :
28-
array();
29-
30-
$now = time();
31-
foreach ( $allEvents as $event ) {
32-
$event->end = strtotime( $event-> end );
33-
$year = Date('Y', $event->end);
34-
35-
$events[ 'year' ][ $year ][] = $event;
36-
if ( $event->end > $now ) {
37-
$events[ 'future' ][] = $event;
38-
} else {
39-
$events[ 'past' ][ $year ][] = $event;
40-
}
41-
}
42-
43-
$events[ 'past' ] = array_reverse( $events[ 'past' ], true );
44-
});
45-
4614
// https://docs.joinmastodon.org/user/profile/#verification
4715
// https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel/me
4816
// https://microformats.org/wiki/rel-me

plugins/allow-numeric-stubs/allow-numeric-stubs.php

Lines changed: 0 additions & 130 deletions
This file was deleted.

plugins/allow-numeric-stubs/readme.txt

Lines changed: 0 additions & 50 deletions
This file was deleted.

sites.php

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -171,19 +171,7 @@ function jquery_sites() {
171171
),
172172
# Historical: Database blog_id 14 is reserved for api.qunitjs.com.
173173
# Historical: Database blog_id 15 is reserved for books.jquery.com
174-
'events.jquery.org' => array(
175-
'blog_id' => 16,
176-
'cookie_domain' => '.jquery.org',
177-
'body_class' => 'jquery-foundation jquery-events',
178-
'options' => array(
179-
'blogname' => 'jQuery Events',
180-
'stylesheet' => 'events.jquery.org',
181-
'active_plugins' => array(
182-
'allow-numeric-stubs/allow-numeric-stubs.php',
183-
'jquery-static-index.php',
184-
),
185-
),
186-
),
174+
# Historical: Database blog_id 16 is reserved for events.jquery.org
187175
'brand.jquery.org' => array(
188176
'blog_id' => 18,
189177
'cookie_domain' => '.jquery.org',

0 commit comments

Comments
 (0)