Skip to content

Commit

Permalink
Fix: Sending the email recovery link from the user-edit screen failed.
Browse files Browse the repository at this point in the history
  • Loading branch information
flegfleg committed Apr 25, 2021
1 parent fa77fd9 commit 236db0e
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
3 changes: 2 additions & 1 deletion admin/cb-users/class-cb-users.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion commons-booking.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion public/class-commons-booking.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Commons_Booking {
*s
* @var string
*/
const VERSION = '0.9.4.16';
const VERSION = '0.9.4.17';

/**
*
Expand Down
5 changes: 5 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit 236db0e

Please sign in to comment.