Skip to content

Commit

Permalink
4.5.23
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelbart committed Jul 22, 2022
1 parent 5d1a42c commit 11a30e9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion core/modules/class-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Helpful
* @subpackage Core\Modules
* @version 4.5.20
* @version 4.5.23
* @since 4.3.0
*/

Expand Down Expand Up @@ -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 ) {
Expand Down
2 changes: 1 addition & 1 deletion helpful.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 11a30e9

Please sign in to comment.