Changeset 12752
- Timestamp:
- 10/12/2020 03:44:15 PM (4 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/classes/class-bp-signup.php
r12694 r12752 161 161 ); 162 162 163 // Whitelist sanitization.163 // Make sure the orderby clause is allowed. 164 164 if ( ! in_array( $r['orderby'], array( 'login', 'email', 'registered', 'activated' ), true ) ) { 165 165 $r['orderby'] = 'signup_id'; -
trunk/src/bp-templates/bp-legacy/js/password-verify.js
r12082 r12752 15 15 } 16 16 17 strength = wp.passwordStrength.meter( pass1, wp.passwordStrength.userInputBlacklist(), pass2 ); 17 // wp.passwordStrength.userInputBlacklist() has been deprecated in WP 5.5.0. 18 if ( 'function' === typeof wp.passwordStrength.userInputDisallowedList ) { 19 strength = wp.passwordStrength.meter( pass1, wp.passwordStrength.userInputDisallowedList(), pass2 ); 20 } else { 21 strength = wp.passwordStrength.meter( pass1, wp.passwordStrength.userInputBlacklist(), pass2 ); 22 } 18 23 19 24 switch ( strength ) { -
trunk/src/bp-templates/bp-nouveau/js/password-verify.js
r12526 r12752 22 22 } 23 23 24 strength = wp.passwordStrength.meter( pass1, wp.passwordStrength.userInputBlacklist(), pass2 ); 24 // wp.passwordStrength.userInputBlacklist() has been deprecated in WP 5.5.0. 25 if ( 'function' === typeof wp.passwordStrength.userInputDisallowedList ) { 26 strength = wp.passwordStrength.meter( pass1, wp.passwordStrength.userInputDisallowedList(), pass2 ); 27 } else { 28 strength = wp.passwordStrength.meter( pass1, wp.passwordStrength.userInputBlacklist(), pass2 ); 29 } 25 30 26 31 switch ( strength ) {
Note: See TracChangeset
for help on using the changeset viewer.