Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
afragen committed Feb 5, 2022
2 parents 089e23e + 4502b54 commit adf6b72
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 36 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#### [unreleased]

#### 10.6.14 / 2022-02-05
* allow hooks to run if no settings to be saved in `Settings::update_settings()`
* composer update

#### 10.6.13 / 2022-02-01
* update nonce condtionals, require variables be set

Expand Down
10 changes: 5 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion git-updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Plugin Name: Git Updater
* Plugin URI: https://git-updater.com
* Description: A plugin to automatically update GitHub hosted plugins, themes, and language packs. Additional API plugins available for Bitbucket, GitLab, Gitea, and Gist.
* Version: 10.6.13
* Version: 10.6.14
* Author: Andy Fragen
* License: MIT
* Domain Path: /languages
Expand Down
18 changes: 9 additions & 9 deletions languages/git-updater.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
# This file is distributed under the MIT.
msgid ""
msgstr ""
"Project-Id-Version: Git Updater 10.6.12.1\n"
"Project-Id-Version: Git Updater 10.6.14\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/git-updater\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2022-01-19T01:08:50+00:00\n"
"POT-Creation-Date: 2022-02-05T23:32:19+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.5.0\n"
"X-Generator: WP-CLI 2.6.0\n"
"X-Domain: git-updater\n"

#. Plugin Name of the plugin
Expand Down Expand Up @@ -181,7 +181,7 @@ msgid "Please be patient while WP-Cron finishes making API calls."
msgstr ""

#: src/Git_Updater/Settings.php:137
#: src/Git_Updater/Settings.php:808
#: src/Git_Updater/Settings.php:806
msgid "Settings"
msgstr ""

Expand Down Expand Up @@ -231,23 +231,23 @@ msgstr ""
msgid "The following plugins or themes might exist on wp.org, but any updates will be downloaded from their respective git repositories."
msgstr ""

#: src/Git_Updater/Settings.php:842
#: src/Git_Updater/Settings.php:840
msgid "This is a private repository."
msgstr ""

#: src/Git_Updater/Settings.php:843
#: src/Git_Updater/Settings.php:841
msgid "This repository has not connected to the API or was unable to connect."
msgstr ""

#: src/Git_Updater/Settings.php:844
#: src/Git_Updater/Settings.php:842
msgid "This repository is hosted on WordPress.org."
msgstr ""

#: src/Git_Updater/Settings.php:845
#: src/Git_Updater/Settings.php:843
msgid "This repository has been ignored and does not connect to the API."
msgstr ""

#: src/Git_Updater/Settings.php:889
#: src/Git_Updater/Settings.php:887
msgid "Installed Plugins and Themes"
msgstr ""

Expand Down
14 changes: 6 additions & 8 deletions src/Git_Updater/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -655,15 +655,13 @@ public function token_callback_checkbox( $args ) {
* @link http://benohead.com/wordpress-network-wide-plugin-settings/
*/
public function update_settings() {
if ( ! isset( $_POST['_wpnonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['_wpnonce'] ) ), 'git_updater-options' ) ) {
$this->redirect_on_save();
return;
}
if ( ( isset( $_POST['option_page'] )
if ( isset( $_POST['_wpnonce'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['_wpnonce'] ) ), 'git_updater-options' ) ) {
if ( ( isset( $_POST['option_page'] )
&& 'git_updater' === $_POST['option_page'] )
) {
$options = $this->filter_options();
update_site_option( 'git_updater', $this->sanitize( $options ) );
) {
$options = $this->filter_options();
update_site_option( 'git_updater', $this->sanitize( $options ) );
}
}

/**
Expand Down
2 changes: 1 addition & 1 deletion vendor/afragen/wp-dependency-installer/composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "afragen/wp-dependency-installer",
"description": "Library that helps WordPress plugin dependency management.",
"version": "4.3.2",
"version": "4.3.3",
"type": "library",
"license": "MIT",
"authors": [
Expand Down
2 changes: 1 addition & 1 deletion vendor/afragen/wp-dependency-installer/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@ public function activate( $slug ) {

return [
'status' => 'updated',
'slug' => $slug,
/* translators: %s: Plugin name */
'message' => sprintf( esc_html__( '%s has been activated.' ), $this->config[ $slug ]['name'] ),
'source' => $this->config[ $slug ]['source'],
Expand Down
12 changes: 6 additions & 6 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,24 +102,24 @@
},
{
"name": "afragen/wp-dependency-installer",
"version": "4.3.2",
"version_normalized": "4.3.2.0",
"version": "4.3.3",
"version_normalized": "4.3.3.0",
"source": {
"type": "git",
"url": "https://github.com/afragen/wp-dependency-installer.git",
"reference": "707d659fcbf690999dde8d5a4359e32e0675cf98"
"reference": "5947e52d91969d2fc8e47a25c02325643b154ec8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/afragen/wp-dependency-installer/zipball/707d659fcbf690999dde8d5a4359e32e0675cf98",
"reference": "707d659fcbf690999dde8d5a4359e32e0675cf98",
"url": "https://api.github.com/repos/afragen/wp-dependency-installer/zipball/5947e52d91969d2fc8e47a25c02325643b154ec8",
"reference": "5947e52d91969d2fc8e47a25c02325643b154ec8",
"shasum": ""
},
"require": {
"afragen/wp-dismiss-notice": "*",
"php": ">=5.6"
},
"time": "2022-01-25T03:33:14+00:00",
"time": "2022-02-05T23:04:53+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
Expand Down
10 changes: 5 additions & 5 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
'reference' => '680207b67585dfaaab7271e8f62ad45a54fa87b3',
'reference' => '089e23eefd3d661c7a1f4246e38534623f353012',
'name' => 'afragen/git-updater',
'dev' => false,
),
Expand All @@ -16,7 +16,7 @@
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
'reference' => '680207b67585dfaaab7271e8f62ad45a54fa87b3',
'reference' => '089e23eefd3d661c7a1f4246e38534623f353012',
'dev_requirement' => false,
),
'afragen/singleton' => array(
Expand All @@ -42,12 +42,12 @@
'dev_requirement' => false,
),
'afragen/wp-dependency-installer' => array(
'pretty_version' => '4.3.2',
'version' => '4.3.2.0',
'pretty_version' => '4.3.3',
'version' => '4.3.3.0',
'type' => 'library',
'install_path' => __DIR__ . '/../afragen/wp-dependency-installer',
'aliases' => array(),
'reference' => '707d659fcbf690999dde8d5a4359e32e0675cf98',
'reference' => '5947e52d91969d2fc8e47a25c02325643b154ec8',
'dev_requirement' => false,
),
'afragen/wp-dismiss-notice' => array(
Expand Down

0 comments on commit adf6b72

Please sign in to comment.