Skip to content

Commit 8f48275

Browse files
committed
Merge branch 'develop'
2 parents 700d617 + 2d9595f commit 8f48275

9 files changed

+306
-296
lines changed

CHANGES.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#### [unreleased]
22

3+
#### 8.6.0 / 2018-12-28 🎂
4+
* add action hook `github_updater_post_rest_process_request` for @Raruto
5+
* add filter hook `github_updater_set_rollback_package` for @sc0ttclark and @moderntribe
6+
* return null for `API_Common::parse_release_asset()` when invalid `$response`, fixes [#750](https://github.com/afragen/github-updater/issues/750)
7+
* make GitHub private repos with release assets use redirect for download link, fixes [#751](https://github.com/afragen/github-updater/issues/751)
8+
39
#### 8.5.2 / 2018-12-10
410
* fixed parsing of wp.org readme changelog items
511

github-updater.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Plugin Name: GitHub Updater
1313
* Plugin URI: https://github.com/afragen/github-updater
1414
* Description: A plugin to automatically update GitHub, Bitbucket, GitLab, or Gitea hosted plugins, themes, and language packs. It also allows for remote installation of plugins or themes into WordPress.
15-
* Version: 8.5.2
15+
* Version: 8.6.0
1616
* Author: Andy Fragen
1717
* License: GNU General Public License v2
1818
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -39,7 +39,7 @@
3939
/* translators: 1: minimum PHP version required, 2: Upgrade PHP URL */
4040
wp_kses_post( __( 'GitHub Updater cannot run on PHP versions older than %1$s. <a href="%2$s">Learn about upgrading your PHP.</a>', 'github-updater' ) ),
4141
'5.6.0',
42-
esc_url( __( 'https://wordpress.org/support/upgrade-php/' ) )
42+
esc_url( __( 'https://wordpress.org/support/update-php/' ) )
4343
);
4444
echo '</p></div>';
4545

js/ghu-install-vanilla.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -11,33 +11,33 @@
1111
(function () {
1212

1313
// Hide non-default (Bitbucket & GitLab) settings on page load.
14-
var nonDefault = ['bitbucket', 'gitlab', 'gitea', 'zipfile'];
14+
let nonDefault = ['bitbucket', 'gitlab', 'gitea', 'zipfile'];
1515

1616
nonDefault.forEach(function (item) {
17-
var parents = getParents(item, 'tr');
17+
let parents = getParents(item, 'tr');
1818
displayNone(parents);
1919
});
2020

2121
// When the api selector changes.
22-
var selects = document.querySelector('select[ name="github_updater_api" ]');
22+
let selects = document.querySelector('select[ name="github_updater_api" ]');
2323

2424
// Only run when on proper tab.
2525
if (selects !== null) {
2626
selects.addEventListener('change', function () {
27-
var defaults = ['github', 'bitbucket', 'gitlab', 'gitea', 'zipfile'];
27+
let defaults = ['github', 'bitbucket', 'gitlab', 'gitea', 'zipfile'];
2828

2929
// Create difference array.
30-
var hideMe = remove(defaults, this.value);
30+
let hideMe = remove(defaults, this.value);
3131

3232
// Hide items with unselected api's classes.
3333
hideMe.forEach(function (item) {
34-
var parents = getParents(item, 'tr');
34+
let parents = getParents(item, 'tr');
3535
displayNone(parents);
3636
});
3737

3838
// Show selected setting.
3939
[this.value].forEach(function (item) {
40-
var parents = getParents(item, 'tr');
40+
let parents = getParents(item, 'tr');
4141
display(parents);
4242
});
4343
});
@@ -73,7 +73,7 @@
7373

7474
// Vanilla JS version of jQuery `$(query).parents(selector)`.
7575
function vanillaParents(element, selector) {
76-
var parents = [];
76+
let parents = [];
7777
if (NodeList.prototype.isPrototypeOf(element)) {
7878
element.forEach((item) => {
7979
element = item.parentElement.closest(selector);

0 commit comments

Comments
 (0)