Skip to content

Commit c475c28

Browse files
authored
api.jqueryui.com: Prepare for jQuery UI 1.14
Also, update jQuery UI used on releases.jquery.com from 1.13.2 to 1.13.3. Closes gh-460
1 parent 5a19a9c commit c475c28

File tree

4 files changed

+26
-9
lines changed

4 files changed

+26
-9
lines changed

sites.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,22 @@ function jquery_sites() {
341341
'jquery_twitter_link' => 'https://twitter.com/jqueryui',
342342
),
343343
),
344+
'api.jqueryui.com/1.14' => array(
345+
'cookie_domain' => '.jqueryui.com',
346+
'options' => array(
347+
'blogname' => 'jQuery UI 1.14 Documentation',
348+
'stylesheet' => 'api.jqueryui.com',
349+
'active_plugins' => array(
350+
'jquery-api-category-listing.php',
351+
'jquery-api-versioned-links.php',
352+
),
353+
'jquery_body_class' => 'jquery-ui',
354+
'jquery_logo_link'=> 'https://jqueryui.com/',
355+
'jquery_typesense_key' => 'Zh8mMgohXECel9wjPwqT7lekLSG3OCgz',
356+
'jquery_typesense_collection' => 'jqueryui_com',
357+
'jquery_twitter_link' => 'https://twitter.com/jqueryui',
358+
),
359+
),
344360
);
345361

346362
return $sites;

themes/api.jqueryui.com/functions.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
function jq_ui_api_versions() {
44
// Must be listed with current stable first
55
return array(
6-
"1.13" => "1.8 and newer",
7-
"1.12" => "1.7 and newer",
8-
"1.11" => "1.6 and newer",
9-
"1.10" => "1.6 and newer",
10-
"1.9" => "1.6 and newer",
11-
"1.8" => "1.3.2 and newer",
6+
"1.14" => "latest versions of jQuery 1.x, 2.x, 3.x & 4.x; see <a href=\"https://jqueryui.com/changelog/\">the changelogs of a specific release</a> for more detailed support information",
7+
"1.13" => "jQuery 1.8 and newer",
8+
"1.12" => "jQuery 1.7 and newer",
9+
"1.11" => "jQuery 1.6 and newer",
10+
"1.10" => "jQuery 1.6 and newer",
11+
"1.9" => "jQuery 1.6 and newer",
12+
"1.8" => "jQuery 1.3.2 and newer",
1213
);
1314
}
1415

themes/api.jqueryui.com/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
category from the sidebar.</p>
5151

5252
<p>jQuery UI <?php echo $thisVersion; ?>
53-
supports jQuery <?php echo $versions[ $thisVersion ]; ?>.</p>
53+
supports <?php echo $versions[ $thisVersion ]; ?>.</p>
5454

5555
<hr>
5656

themes/releases.jquery.com/page.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
2-
wp_enqueue_style('jquery-ui', 'https://code.jquery.com/ui/1.13.2/themes/ui-lightness/jquery-ui.css');
2+
wp_enqueue_style('jquery-ui', 'https://code.jquery.com/ui/1.13.3/themes/ui-lightness/jquery-ui.css');
33
wp_enqueue_style('sri-modal', get_template_directory_uri() . '/css/sri-modal.css');
44

5-
wp_enqueue_script('jquery-ui', 'https://code.jquery.com/ui/1.13.2/jquery-ui.min.js');
5+
wp_enqueue_script('jquery-ui', 'https://code.jquery.com/ui/1.13.3/jquery-ui.min.js');
66
wp_enqueue_script('clipboard-polyfill', get_template_directory_uri() . '/js/clipboard-polyfill.js');
77
wp_enqueue_script('sri-modal', get_template_directory_uri() . '/js/sri-modal.js');
88
?>

0 commit comments

Comments
 (0)