diff --git a/README.md b/README.md index 63e8cb4..c4f5185 100644 --- a/README.md +++ b/README.md @@ -109,6 +109,10 @@ New in this version: ## Changelog +### 0.9.4.17 + +* Fix: Sending the email recovery link from the user-edit screen failed. + ### 0.9.4.16 * Renamed plugin to differentiate this legacy version from CommonsBooking (2). diff --git a/admin/cb-users/class-cb-users.php b/admin/cb-users/class-cb-users.php index 14fab37..45dbc9a 100644 --- a/admin/cb-users/class-cb-users.php +++ b/admin/cb-users/class-cb-users.php @@ -226,7 +226,8 @@ public function cb_redirect_prevent_dashboard() { * */ public function cb_user_profile_redirect() { - if ( is_user_logged_in() ) { // user is logged in (updating profile), no redirect on lost password + + if ( is_user_logged_in() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) { // user is logged in (updating profile), no redirect on lost password wp_redirect( trailingslashit( home_url() ) ); // redirect to home page exit; } diff --git a/commons-booking.php b/commons-booking.php index b6a7cc0..ba0deea 100644 --- a/commons-booking.php +++ b/commons-booking.php @@ -14,7 +14,7 @@ * Plugin Name: CB (legacy) * Plugin URI: https://www.commonsbooking.org * Description: Legacy version (0.X) of CommonsBooking - * Version: 0.9.4.16 + * Version: 0.9.4.17 * Author: Florian Egermann * Author URI: http://www.wielebenwir.de * Text Domain: commons-booking diff --git a/public/class-commons-booking.php b/public/class-commons-booking.php index c3dd9ec..ab01a2f 100644 --- a/public/class-commons-booking.php +++ b/public/class-commons-booking.php @@ -24,7 +24,7 @@ class Commons_Booking { *s * @var string */ - const VERSION = '0.9.4.16'; + const VERSION = '0.9.4.17'; /** * diff --git a/readme.txt b/readme.txt index 9c389fb..0f78f8e 100644 --- a/readme.txt +++ b/readme.txt @@ -92,6 +92,11 @@ New in this version: == Changelog == += 0.9.4.17 = + +* Fix: Sending the email recovery link from the user-edit screen failed. + + = 0.9.4.16 = * Renamed plugin to differentiate this legacy version from CommonsBooking (2).