Skip to content

Commit

Permalink
Merge pull request #437 from addonify/development
Browse files Browse the repository at this point in the history
Tested against latest versions of WordPress and WooCommerce
  • Loading branch information
Asok17 authored Apr 3, 2024
2 parents 2d1e6ee + d560720 commit 2757325
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 19 deletions.
9 changes: 7 additions & 2 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
Contributors: addonify
Tags: wishlist, woocommerce wishlist, product wishlist, woocommerce, ecommerce, e-commerce
Requires at least: 6.3
Tested up to: 6.4.3
Stable tag: 2.0.10
Tested up to: 6.5
Stable tag: 2.0.11
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -140,6 +140,11 @@ You can use this `[addonify_wishlist]` shortcode to display the wishlist table i

== Changelog ==

= 2.0.11 - 03 April, 2024 =

- Tested: WordPress version 6.5.
- Tested: WooCommerce version 8.7.

= 2.0.10 - 8 February, 2024 =

- Fixed: Issue of user wishlist's operation. [GitHub Issue #431](https://github.com/addonify/addonify-wishlist/issues/431)
Expand Down
37 changes: 20 additions & 17 deletions addonify-wishlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,25 @@
* 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.10
* Version: 2.0.11
* Requires at least: 6.3
* Tested up to: 6.4.3
* Tested up to: 6.5
* Requires PHP: 7.4
* Author: Addonify
* Author URI: https://www.addonify.com
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: addonify-wishlist
* Domain Path: /languages
* Requires Plugins: woocommerce
*/

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}

define( 'ADDONIFY_WISHLIST_VERSION', '2.0.10' );
define( 'ADDONIFY_WISHLIST_VERSION', '2.0.11' );
define( 'ADDONIFY_WISHLIST_DB_INITIALS', 'addonify_wishlist_' );
define( 'ADDONIFY_WISHLIST_PLUGIN_PATH', dirname( __FILE__ ) );
define( 'ADDONIFY_WISHLIST_PLUGIN_FILE', __FILE__ );
Expand Down Expand Up @@ -79,20 +80,22 @@ function run_addonify_wishlist() {
$plugin = new Addonify_Wishlist();
$plugin->run();
} else {
add_action(
'admin_notices',
function() {
?>
<div class="notice notice-error is-dismissible">
<p>
<?php
echo wp_kses_post( __( '<b>Addonify WooCommerce Wishlist</b> plugin is enabled but not functional. <b>WooCommerce</b> is required for it to work properly.', 'addonify-wishlist' ) );
?>
</p>
</div>
<?php
}
);
if ( version_compare( get_bloginfo( 'version' ), '6.5', '<' ) ) {
add_action(
'admin_notices',
function() {
?>
<div class="notice notice-error is-dismissible">
<p>
<?php
echo wp_kses_post( __( '<b>Addonify WooCommerce Wishlist</b> plugin is enabled but not functional. <b>WooCommerce</b> is required for it to work properly.', 'addonify-wishlist' ) );
?>
</p>
</div>
<?php
}
);
}
}
}
add_action( 'plugins_loaded', 'run_addonify_wishlist' );

0 comments on commit 2757325

Please sign in to comment.