Skip to:
Content

BuddyPress.org

Changeset 12752


Ignore:
Timestamp:
10/12/2020 03:44:15 PM (4 years ago)
Author:
imath
Message:

Templates: remove 'blacklist' language from template packs

This is the last part of a series of changes meant to promote clarity and
inclusiveness in the language used in our codebase.

Fixes #8339

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/classes/class-bp-signup.php

    r12694 r12752  
    161161        );
    162162
    163         // Whitelist sanitization.
     163        // Make sure the orderby clause is allowed.
    164164        if ( ! in_array( $r['orderby'], array( 'login', 'email', 'registered', 'activated' ), true ) ) {
    165165            $r['orderby'] = 'signup_id';
  • trunk/src/bp-templates/bp-legacy/js/password-verify.js

    r12082 r12752  
    1515        }
    1616
    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        }
    1823
    1924        switch ( strength ) {
  • trunk/src/bp-templates/bp-nouveau/js/password-verify.js

    r12526 r12752  
    2222        }
    2323
    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        }
    2530
    2631        switch ( strength ) {
Note: See TracChangeset for help on using the changeset viewer.