Make WordPress Core

Changeset 49739 for trunk


Ignore:
Timestamp:
12/03/2020 04:28:08 PM (6 years ago)
Author:
TimothyBlynJacobs
Message:

App Passwords: Return true when rate limiting a password's last used time.

Previously we returned a WP_Error instance saying that the password was not found which is inaccurate.

Props dlh.
Fixes #51922.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-application-passwords.php

    r49276 r49739  
    204204                        // Only record activity once a day.
    205205                        if ( $password['last_used'] + DAY_IN_SECONDS > time() ) {
    206                                 continue;
     206                                return true;
    207207                        }
    208208
Note: See TracChangeset for help on using the changeset viewer.