mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-12 03:06:23 +09:00
- unchecked remember me on login form;
This commit is contained in:
@@ -36,15 +36,16 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
|
||||
*
|
||||
* @param integer $id
|
||||
* @param string $title
|
||||
* @param bool $checked
|
||||
*/
|
||||
function checkbox( $id, $title ) {
|
||||
?>
|
||||
function checkbox( $id, $title, $checked = true ) {
|
||||
$class = $checked ? 'um-icon-android-checkbox-outline' : 'um-icon-android-checkbox-outline-blank'; ?>
|
||||
|
||||
<div class="um-field um-field-c">
|
||||
<div class="um-field-area">
|
||||
<label class="um-field-checkbox active">
|
||||
<input type="checkbox" name="<?php echo $id; ?>" value="1" checked/>
|
||||
<span class="um-field-checkbox-state"><i class="um-icon-android-checkbox-outline"></i></span>
|
||||
<label class="um-field-checkbox <?php echo ( $checked ) ? 'active' : '' ?>">
|
||||
<input type="checkbox" name="<?php echo $id; ?>" value="1" <?php checked( $checked ) ?> />
|
||||
<span class="um-field-checkbox-state"><i class="<?php echo $class ?>"></i></span>
|
||||
<span class="um-field-checkbox-option"> <?php echo $title; ?></span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
@@ -420,7 +420,7 @@ function um_add_submit_button_to_login( $args ) {
|
||||
<div class="um-col-alt">
|
||||
|
||||
<?php if ( isset( $args['show_rememberme'] ) && $args['show_rememberme'] ) {
|
||||
echo UM()->fields()->checkbox('rememberme', __('Keep me signed in','ultimate-member') );
|
||||
UM()->fields()->checkbox( 'rememberme', __( 'Keep me signed in', 'ultimate-member' ), false );
|
||||
echo '<div class="um-clear"></div>';
|
||||
} ?>
|
||||
|
||||
|
||||
@@ -139,7 +139,15 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
|
||||
|
||||
= 2.0.34: December , 2018 =
|
||||
|
||||
* Enhancements:
|
||||
- Added new "Extensions" class for future integrations
|
||||
|
||||
* Bugfixes:
|
||||
- Fixed modal window responsive position
|
||||
- Fixed class autoloader for Windows servers
|
||||
- Fixed admin forms integration
|
||||
- Fixed empty value for select2 selectbox
|
||||
- Fixed unchecked Remember Me by default on login page
|
||||
|
||||
* Deprecated:
|
||||
- removed "UM_TEXTDOMAIN" constant;
|
||||
|
||||
Reference in New Issue
Block a user