We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da2c4cc commit 10bfbe0Copy full SHA for 10bfbe0
includes/wpum-forms/class-wpum-form-password.php
@@ -247,8 +247,11 @@ public function submit_handler() {
247
if ( empty( $active_tab ) ) {
248
$active_tab = isset( $_GET['tab'] ) ? $_GET['tab'] : 'password';
249
}
250
-
251
- $redirect = rtrim( get_permalink(), '/' ) . '/' . 'password';
+ $redirect = get_permalink();
+ if ( ! $redirect ) {
252
+ $redirect = get_permalink( wpum_get_core_page_id( 'account' ) );
253
+ }
254
+ $redirect = rtrim( $redirect, '/' ) . '/' . 'password';
255
$redirect = add_query_arg(
256
[
257
'password-updated' => 'success',
0 commit comments