Make WordPress Core

Ticket #51922: 51922.diff

File 51922.diff, 494 bytes (added by dlh, 4 years ago)
  • src/wp-includes/class-wp-application-passwords.php

    diff --git src/wp-includes/class-wp-application-passwords.php src/wp-includes/class-wp-application-passwords.php
    index 4500a571d8..df8745ecba 100644
    class WP_Application_Passwords { 
    203203
    204204                        // Only record activity once a day.
    205205                        if ( $password['last_used'] + DAY_IN_SECONDS > time() ) {
    206                                 continue;
     206                                return true;
    207207                        }
    208208
    209209                        $password['last_used'] = time();