Fix invalid security notice in set password

This commit is contained in:
Champ Camba
2016-11-30 13:37:33 +08:00
parent b66c99bec2
commit c54e8d3c56
+1
View File
@@ -171,6 +171,7 @@
}
if( !is_user_logged_in() && isset( $args ) && ! um_is_core_page('password-reset') ||
isset( $args['user_id'] ) && um_is_core_page('password-reset') ||
is_user_logged_in() && isset( $args['user_id'] ) && $args['user_id'] != get_current_user_id()
){
wp_die( __( 'This is not possible for security reasons.','ultimatemember') );