mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- pre-release
This commit is contained in:
@@ -843,7 +843,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
|
||||
if ( ! isset( UM()->form()->post_form[ $key ] ) ) {
|
||||
|
||||
$field_value = um_user( $key );
|
||||
if( isset($field_value) && !$field_value ){
|
||||
if ( ! $field_value ) {
|
||||
$field_value = 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -246,16 +246,15 @@ if ( ! class_exists( 'um\core\Members' ) ) {
|
||||
/*if( isset($attrs) && is_array( $attrs['options'] ) ){
|
||||
asort( $attrs['options'] );
|
||||
}*/
|
||||
if( isset( $attrs['label'] ) ){
|
||||
if ( isset( $attrs['label'] ) ) {
|
||||
$label = $attrs['label'];
|
||||
} else {
|
||||
$label = $attrs['title'];
|
||||
}
|
||||
?>
|
||||
$label = isset( $attrs['title'] ) ? $attrs['title'] : '';
|
||||
} ?>
|
||||
|
||||
<select name="<?php echo $filter; ?>" id="<?php echo $filter; ?>" class="um-s1" style="width: 100%" data-placeholder="<?php echo __( stripslashes( $label ), 'ultimate-member' ); ?>" <?php if ( ! empty( $attrs['custom_dropdown_options_source'] ) ) { ?> data-um-parent="<?php echo $attrs['parent_dropdown_relationship']; ?>" data-mebers-directory="yes" data-um-ajax-source="<?php echo $attrs['custom_dropdown_options_source'] ?>"<?php } ?>>
|
||||
<select name="<?php echo $filter; ?>" id="<?php echo $filter; ?>" class="um-s1" style="width: 100%" data-placeholder="<?php echo __( stripslashes( $label ), 'ultimate-member' ); ?>" <?php if ( ! empty( $attrs['custom_dropdown_options_source'] ) ) { ?> data-um-parent="<?php echo $attrs['parent_dropdown_relationship']; ?>" data-mebers-directory="yes" data-um-ajax-source="<?php echo $attrs['custom_dropdown_options_source'] ?>"<?php } ?>>
|
||||
|
||||
<option></option>
|
||||
<option></option>
|
||||
|
||||
<?php foreach ( $attrs['options'] as $k => $v ) {
|
||||
|
||||
|
||||
@@ -99,9 +99,6 @@ if ( ! class_exists( 'um\core\User' ) ) {
|
||||
* @param $user_id
|
||||
*/
|
||||
function delete_user_handler( $user_id ) {
|
||||
error_log( '----------------' );
|
||||
error_log( $user_id );
|
||||
|
||||
um_fetch_user( $user_id );
|
||||
|
||||
/**
|
||||
@@ -1378,8 +1375,6 @@ if ( ! class_exists( 'um\core\User' ) ) {
|
||||
$this->send_mail_on_delete = false;
|
||||
}
|
||||
|
||||
$this->delete_user_handler( um_user( 'ID' ) );
|
||||
|
||||
// remove user
|
||||
if ( is_multisite() ) {
|
||||
|
||||
|
||||
@@ -144,6 +144,8 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
|
||||
- Fixed upload photo base URL for Windows servers
|
||||
- Fixed displaying user Posts at Profile/Posts tab
|
||||
- Fixed unique filename issue, upload avatar with high case extension
|
||||
- Fixed member directory filter title
|
||||
- Fixed duplicate delete user handler
|
||||
|
||||
|
||||
= 2.0.39: February 11, 2019 =
|
||||
|
||||
Reference in New Issue
Block a user