Skip to content

Commit

Permalink
v1.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pablo-sg-pacheco committed Nov 23, 2022
1 parent e5ea3aa commit f16e571
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
7 changes: 3 additions & 4 deletions includes/class-alg-wc-wish-list-unlogged-user.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Wish List for WooCommerce - Unlogged User.
*
* @version 1.9.0
* @version 1.9.1
* @since 1.1.5
* @author WPFactory
*/
Expand Down Expand Up @@ -83,7 +83,7 @@ public static function set_unlogged_user_id( $unlogged_user_id ) {
/**
* Gets the user id from unlogged user.
*
* @version 1.9.0
* @version 1.9.1
* @since 1.1.5
*
* @return string
Expand All @@ -97,7 +97,7 @@ public static function get_unlogged_user_id( $force_id_creation = false ) {
}
} elseif ( 'wc_session' === self::get_guest_user_data_type() ) {
if ( ! is_user_logged_in() && isset( WC()->session ) ) {
if ( ! WC()->session->has_session() ) {
if ( empty( self::$unlogged_user_id ) && ! WC()->session->has_session() && $force_id_creation ) {
WC()->session->set_customer_session_cookie( true );
}
self::$unlogged_user_id = ! empty( self::$unlogged_user_id ) ? self::$unlogged_user_id : ( ! empty( $id = WC()->session->get( self::VAR_UNLOGGED_USER_ID ) ) ? $id : '' );
Expand All @@ -106,7 +106,6 @@ public static function get_unlogged_user_id( $force_id_creation = false ) {
}
}
}

return self::$unlogged_user_id;
}

Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: wpcodefactory, karzin
Tags: woocommerce,wishlist,wish list
Requires at least: 4.4
Tested up to: 6.1
Stable tag: 1.9.0
Stable tag: 1.9.1
Requires PHP: 5.6.0
License: GNU General Public License v3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Expand Down Expand Up @@ -136,6 +136,9 @@ Yes, you can find it [here](https://wpfactory.com/item/wish-list-woocommerce/ "W

== Changelog ==

= 1.9.1 - 22/11/2022 =
* Fix - Advanced - Guest user data type - Fix warning regarding WooCommerce Session.

= 1.9.0 - 14/11/2022 =
* Dev - General - Responsiveness - New option: Max width.
* Dev - General - Responsiveness - New option: Max height.
Expand Down
2 changes: 1 addition & 1 deletion wish-list-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Wish List for WooCommerce
Plugin URI: https://wpfactory.com/item/wish-list-woocommerce/
Description: Let your visitors save and share the products they love on your WooCommerce store with a Wish List.
Version: 1.9.0
Version: 1.9.1
Author: WPFactory
Author URI: https://wpfactory.com/
Copyright: © 2022 WPFactory.
Expand Down

0 comments on commit f16e571

Please sign in to comment.