Skip to content

Commit 426cfbc

Browse files
committed
Merge branch 'develop'
2 parents 7015165 + 388318b commit 426cfbc

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed

CHANGES.md

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

3+
#### 8.6.3 / 2019-02-04
4+
* use Update PHP messaging as in WP 5.1 in version check
5+
36
#### 8.6.2 / 2019-01-14
47
* fix for bug with Bitbucket endpoints, fixes [#757](https://github.com/afragen/github-updater/issues/757)
58

github-updater.php

+4-4
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.6.2
15+
* Version: 8.6.3
1616
* Author: Andy Fragen
1717
* License: GNU General Public License v2
1818
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -35,12 +35,12 @@
3535
die;
3636
}
3737

38-
if ( version_compare( '5.6.0', PHP_VERSION, '>=' ) ) {
38+
if ( version_compare( phpversion(), '5.6', '<=' ) ) {
3939
echo '<div class="error notice is-dismissible"><p>';
4040
printf(
4141
/* translators: 1: minimum PHP version required, 2: Upgrade PHP URL */
42-
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' ) ),
43-
'5.6.0',
42+
wp_kses_post( __( 'GitHub Updater cannot run on PHP versions older than %1$s. <a href="%2$s">Learn about updating your PHP.</a>', 'github-updater' ) ),
43+
'5.6',
4444
esc_url( __( 'https://wordpress.org/support/update-php/' ) )
4545
);
4646
echo '</p></div>';

languages/github-updater.pot

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
# This file is distributed under the same license as the GitHub Updater plugin.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: GitHub Updater 8.6.2\n"
5+
"Project-Id-Version: GitHub Updater 8.6.3\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/github-updater\n"
77
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
88
"Language-Team: LANGUAGE <[email protected]>\n"
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=UTF-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"
12-
"POT-Creation-Date: 2019-01-15T03:44:46+00:00\n"
12+
"POT-Creation-Date: 2019-02-05T03:35:40+00:00\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1414
"X-Generator: WP-CLI 2.1.0\n"
1515
"X-Domain: github-updater\n"
@@ -39,7 +39,7 @@ msgstr ""
3939

4040
#. translators: 1: minimum PHP version required, 2: Upgrade PHP URL
4141
#: github-updater.php:42
42-
msgid "GitHub Updater cannot run on PHP versions older than %1$s. <a href=\"%2$s\">Learn about upgrading your PHP.</a>"
42+
msgid "GitHub Updater cannot run on PHP versions older than %1$s. <a href=\"%2$s\">Learn about updating your PHP.</a>"
4343
msgstr ""
4444

4545
#: src/GitHub_Updater/Install.php:104

src/GitHub_Updater/Settings.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public function add_plugin_page() {
185185
* @access private
186186
*/
187187
private function options_tabs() {
188-
$current_tab = isset( $_GET['tab'] ) ? $_GET['tab'] : 'github_updater_settings';
188+
$current_tab = isset( $_GET['tab'] ) ? esc_attr( $_GET['tab'] ) : 'github_updater_settings';
189189
echo '<h2 class="nav-tab-wrapper">';
190190
foreach ( $this->settings_tabs() as $key => $name ) {
191191
$active = ( $current_tab === $key ) ? 'nav-tab-active' : '';
@@ -200,7 +200,7 @@ private function options_tabs() {
200200
* @access private
201201
*/
202202
private function options_sub_tabs() {
203-
$current_tab = isset( $_GET['subtab'] ) ? $_GET['subtab'] : 'github_updater';
203+
$current_tab = isset( $_GET['subtab'] ) ? esc_attr( $_GET['subtab'] ) : 'github_updater';
204204
echo '<h3 class="nav-tab-wrapper">';
205205
foreach ( $this->settings_sub_tabs() as $key => $name ) {
206206
$active = ( $current_tab === $key ) ? 'nav-tab-active' : '';
@@ -214,8 +214,8 @@ private function options_sub_tabs() {
214214
*/
215215
public function create_admin_page() {
216216
$action = is_multisite() ? 'edit.php?action=github-updater' : 'options.php';
217-
$tab = isset( $_GET['tab'] ) ? $_GET['tab'] : 'github_updater_settings';
218-
$subtab = isset( $_GET['subtab'] ) ? $_GET['subtab'] : 'github_updater';
217+
$tab = isset( $_GET['tab'] ) ? esc_attr( $_GET['tab'] ) : 'github_updater_settings';
218+
$subtab = isset( $_GET['subtab'] ) ? esc_attr( $_GET['subtab'] ) : 'github_updater';
219219
$logo = plugins_url( basename( GITHUB_UPDATER_DIR ) . '/assets/GitHub_Updater_logo_small.png' ); ?>
220220
<div class="wrap github-updater-settings">
221221
<h1>

0 commit comments

Comments
 (0)