mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fix wrong $_um_profile_id for not logged in users
This commit is contained in:
@@ -2123,9 +2123,6 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
|
||||
if ( empty( $_um_profile_id ) ) {
|
||||
$_um_profile_id = um_user( 'ID' );
|
||||
}
|
||||
if ( ! is_user_logged_in() ) {
|
||||
$_um_profile_id = 0;
|
||||
}
|
||||
|
||||
// get whole field data
|
||||
if ( isset( $data ) && is_array( $data ) ) {
|
||||
|
||||
Reference in New Issue
Block a user