Changeset 13189 for trunk/src/bp-members/bp-members-functions.php
- Timestamp:
- 12/16/2021 06:16:38 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-members/bp-members-functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/bp-members-functions.php
r13170 r13189 3764 3764 return is_multisite() && in_array( bp_core_get_root_option( 'registration' ), $matches, true ); 3765 3765 } 3766 3767 /** 3768 * Returns the strength score a password needs to have to be used by a member. 3769 * 3770 * Score => Allowed Strength. 3771 * 0 => any passwords. 3772 * 1 => at least short passwords. 3773 * 2 => at least weak passwords. 3774 * 3 => at least good passwords. 3775 * 4 => at least strong passwords. 3776 * 3777 * @since 10.0.0 3778 * 3779 * @return int the strength score a password needs to have to be used by a member. 3780 */ 3781 function bp_members_user_pass_required_strength() { 3782 $default_strength = 0; 3783 if ( defined( 'BP_MEMBERS_REQUIRED_PASSWORD_STRENGTH' ) && BP_MEMBERS_REQUIRED_PASSWORD_STRENGTH ) { 3784 $default_strength = (int) BP_MEMBERS_REQUIRED_PASSWORD_STRENGTH; 3785 } 3786 3787 /** 3788 * Filter here to raise the strength score user passwords need to reach to be allowed. 3789 * 3790 * @since 10.0.0 3791 * 3792 * @param int $default_strength The strength score user passwords need to reach to be allowed. 3793 */ 3794 return (int) apply_filters( 'bp_members_user_pass_required_strength', $default_strength ); 3795 }
Note: See TracChangeset
for help on using the changeset viewer.