mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fix wrong user id in account block
This commit is contained in:
@@ -2076,7 +2076,11 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
|
||||
function edit_field( $key, $data, $rule = false, $args = array() ) {
|
||||
global $_um_profile_id;
|
||||
|
||||
$output = '';
|
||||
if ( 1 === (int) $data['widget'] ) {
|
||||
$_um_profile_id = get_current_user_id();
|
||||
}
|
||||
|
||||
$output = '';
|
||||
$disabled = '';
|
||||
if ( empty( $_um_profile_id ) ) {
|
||||
$_um_profile_id = um_user( 'ID' );
|
||||
|
||||
Reference in New Issue
Block a user