Skip to content

Commit

Permalink
Merge pull request #676 from 10up/fix/661
Browse files Browse the repository at this point in the history
Fix: Application Passwords handling for WordPress 5.6
  • Loading branch information
jeffpaul authored Dec 9, 2020
2 parents e114541 + 91ea59a commit 1d5dd57
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion distributor.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ function( $response ) {
add_action(
'plugins_loaded',
function() {
if ( ! class_exists( 'Application_Passwords' ) ) {
if (
! class_exists( 'Application_Passwords' ) && ! class_exists( 'WP_Application_Passwords' )
|| class_exists( 'WP_Application_Passwords' ) && function_exists( 'wp_is_application_passwords_available' ) && ! wp_is_application_passwords_available()
) {
require_once __DIR__ . '/vendor/georgestephanis/application-passwords/application-passwords.php';
}
}
Expand Down

0 comments on commit 1d5dd57

Please sign in to comment.