From 11a30e92b9b4b46df4a36d141bdffe17abc00832 Mon Sep 17 00:00:00 2001 From: Kevin Pliester <5339107+pixelbart@users.noreply.github.com> Date: Fri, 22 Jul 2022 11:23:30 +0200 Subject: [PATCH] 4.5.23 --- core/modules/class-core.php | 11 ++++++++++- helpful.php | 2 +- readme.txt | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/core/modules/class-core.php b/core/modules/class-core.php index f4b9257..e2e1746 100644 --- a/core/modules/class-core.php +++ b/core/modules/class-core.php @@ -4,7 +4,7 @@ * * @package Helpful * @subpackage Core\Modules - * @version 4.5.20 + * @version 4.5.23 * @since 4.3.0 */ @@ -312,6 +312,15 @@ public function setup_tables_and_settings() { * @param array $hook_extra Type of Upgrade. */ public function on_plugin_update( $upgrader, $hook_extra ) { + if ( + !is_array($hook_extra) || + !array_key_exists('action', $hook_extra) || + !array_key_exists('type', $hook_extra) || + !array_key_exists('plugins', $hook_extra) + ) { + return; + } + if ( 'update' === $hook_extra['action'] && 'plugin' === $hook_extra['type'] ) { foreach ( $hook_extra['plugins'] as $plugin_name ) { if ( HELPFUL_BASENAME === $plugin_name ) { diff --git a/helpful.php b/helpful.php index 11682d6..b9d277d 100644 --- a/helpful.php +++ b/helpful.php @@ -2,7 +2,7 @@ /** * Plugin Name: Helpful * Description: Add a fancy feedback form under your posts or post-types and ask your visitors a question. Give them the abbility to vote with yes or no. - * Version: 4.5.22 + * Version: 4.5.23 * Author: Pixelbart * Author URI: https://pixelbart.de * Text Domain: helpful diff --git a/readme.txt b/readme.txt index b35a84f..5350022 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: helpful, poll, feedback, reviews, vote, review, voting Requires at least: 4.6 Tested up to: 6.0 Requires PHP: 5.6.20 -Stable tag: 4.5.22 +Stable tag: 4.5.23 License: MIT License License URI: https://opensource.org/licenses/MIT