- unchecked remember me on login form;

This commit is contained in:
nikitasinelnikov
2018-12-05 11:25:43 +02:00
parent 61be7257c1
commit 4d95fd7541
3 changed files with 15 additions and 6 deletions
+6 -5
View File
@@ -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>
+1 -1
View File
@@ -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>';
} ?>
+8
View File
@@ -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;