Skip to:
Content

BuddyPress.org

Changeset 9612


Ignore:
Timestamp:
03/10/2015 05:29:02 PM (5 years ago)
Author:
boonebgorges
Message:

Use bp_form_field_attributes( 'password' ) to print autocomplete=off attribute in login widget.

This is better than hardcoding. See #5914.

Props r-a-y.
Fixes #6269.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-widgets.php

    r9607 r9612  
    112112
    113113                <label for="bp-login-widget-user-pass"><?php _e( 'Password', 'buddypress' ); ?></label>
    114                 <input type="password" name="pwd" id="bp-login-widget-user-pass" class="input" value="" autocomplete="off" />
     114                <input type="password" name="pwd" id="bp-login-widget-user-pass" class="input" value="" <?php bp_form_field_attributes( 'password' ) ?> />
    115115
    116116                <div class="forgetmenot"><label><input name="rememberme" type="checkbox" id="bp-login-widget-rememberme" value="forever" /> <?php _e( 'Remember Me', 'buddypress' ); ?></label></div>
Note: See TracChangeset for help on using the changeset viewer.