Skip to content

Commit

Permalink
Merge pull request #376 from addonify/development
Browse files Browse the repository at this point in the history
Fix: PHP warnings
  • Loading branch information
Asok17 authored May 28, 2023
2 parents 4870857 + 2ee4e43 commit 82faf52
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
6 changes: 5 additions & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Contributors: addonify
Tags: wishlist, woocommerce wishlist, product wishlist, woocommerce, ecommerce, e-commerce
Requires at least: 5.9
Tested up to: 6.2.2
Stable tag: 2.0.3
Stable tag: 2.0.4
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -141,6 +141,10 @@ You can use this `[addonify_wishlist]` shortcode to display the wishlist table i

== Changelog ==

= 2.0.4 - 28 May, 2023 =

- Fix: PHP warnings. [GitHub Issue #374](https://github.com/addonify/addonify-wishlist/issues/374)

= 2.0.3 - 26 May, 2023 =

- Added: Color options for wishlist notice.
Expand Down
4 changes: 2 additions & 2 deletions addonify-wishlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Plugin Name: Addonify - WooCommerce Wishlist
* Plugin URI: https://wordpress.org/plugins/addonify-wishlist
* Description: Addonify WooCommerce Wishlist is a light-weight yet powerful tool that adds a wishlist functionality to your e-commerce shop.
* Version: 2.0.3
* Version: 2.0.4
* Requires at least: 5.9
* Requires PHP: 7.4
* Author: Addonify
Expand All @@ -26,7 +26,7 @@
die;
}

define( 'ADDONIFY_WISHLIST_VERSION', '2.0.3' );
define( 'ADDONIFY_WISHLIST_VERSION', '2.0.4' );
define( 'ADDONIFY_WISHLIST_DB_INITIALS', 'addonify_wishlist_' );
define( 'ADDONIFY_WISHLIST_PLUGIN_PATH', dirname( __FILE__ ) );
define( 'ADDONIFY_WISHLIST_PLUGIN_FILE', __FILE__ );
Expand Down
6 changes: 5 additions & 1 deletion includes/class-addonify-wishlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,11 @@ public function check_for_table( $upgrader_object, $options ) {

$current_plugin_path_name = plugin_basename( ADDONIFY_WISHLIST_PLUGIN_FILE );

if ( 'update' === $options['action'] && 'plugin' === $options['type'] ) {
if (
( isset( $options['action'] ) && 'update' === $options['action'] ) &&
( isset( $options['type'] ) && 'plugin' === $options['type'] ) &&
isset( $options['plugins'] )
) {
foreach ( $options['plugins'] as $each_plugin ) {
if ( $each_plugin === $current_plugin_path_name ) {
global $addonify_wishlist;
Expand Down

0 comments on commit 82faf52

Please sign in to comment.