• Resolved awijasa

    (@awijasa)


    Hello,

    WP Defender checks if a site has Jetpack and WordPress.com log in turned on. If it’s on, then WP Defender’s 2FA would be disabled.

    However, when Jetpack’s WordPress.com log in option is turned back off, maybe the update_option_jetpack_available_modules action is never fired by Jetpack… I ‘m not sure what happened, but I believe $settings->markAsUnConflict would never be executed.

    https://wpdefender.cloud77.com/wp-signup.php is available to you for testing. It has Jetpack with WordPress.com log in turned off. However, it was on just once before. I don’t think you will be able to make 2FA to work for your account there.

    Workaround:

    In /app/module/advanced-tools/component/auth-api.php, add this right above the first occurrence of return $isConflict;:

    
    global $wpdb;
    $sql   = "SELECT blog_id FROM <code>{$wpdb->prefix}blogs</code>";
    $blogs = $wpdb->get_col( $sql );
    foreach ( $blogs as $id ) {
        $options = get_blog_option( $id, 'jetpack_active_modules', array() );
        if( !array_search( 'sso', $options ) ) {
            $settings->markAsUnConflict( 'jetpack/jetpack.php' );
    
            return false;
        }
    }
    

    Also, add this right above the last occurrence of return $isConflict;:

    
    $options = get_option( 'jetpack_active_modules', array() );
    if( !array_search( 'sso', $options ) ) {
        $settings->markAsUnConflict( 'jetpack/jetpack.php' );
    
        return false;
    }
    

    Please let me know if you have any question.

    Thanks,

    @awijasa

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Predrag – WPMU DEV Support

    (@wpmudev-support1)

    Hi @awijasa,

    Hope you’re doing well and thanks for the interest in Defender.

    We have recently noticed this bug and it’s already fixed in the current beta our developers are working on so it will be included with next release ??

    Cheers,
    Predrag

    Thread Starter awijasa

    (@awijasa)

    Awesome!! I’ll set this to Resolved once I have updated the plugin and tested it.

    Thanks,

    @awijasa

    @awijasa This issue should now be resolved in version 1.7.4. Thanks for the feedback. Let us know if you have any issues with the update.

    Thread Starter awijasa

    (@awijasa)

    I confirm that this bug was indeed fixed! Many Thanks!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WP Defender does not know if Jetpack’s WordPress.com log in has been turned off’ is closed to new replies.