• Resolved sissi

    (@ebiebzh0)


    In the latest version 5.2.0 there are a lot of js files appearing that are enqueued by the class Simba_Two_Factor_Authentication_1 with add_action(‘enqueue_block_assets’, array($this, ‘enqueue_gutenberg_block_scripts’));

    we are running all our sites without gutenberg and have a very clean and small frontend, so we do not want or need all the js in the frontend that are loaded with the action. also if the option for 2FA in the backend would be turned off for all user groups, you could disable that action anyways or at least make it possible to switch the gutenberg block scripts off (filter or setting)

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @ebiebzh0

    Thanks for raising issue. Adding the gutenberg block for the [twofactor_user_settings] shortcode might be due to those scripts getting added.

    I will create internal ticket for this, as you suggested to have filter so possible to disable adding those block java script and get back to you asap

    Regards

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @ebiebzh0

    I have created internal ticket for it and we have identified issue. We are working on fix.

    As temporary solution can you please try add below code in function.php file of your theme and let me know if it solves the issue.

    if(!is_user_logged_in()) {
        global $simba_two_factor_authentication;
        remove_action( 'enqueue_block_assets', array($simba_two_factor_authentication, 'enqueue_gutenberg_block_scripts'));
    }
    Thread Starter sissi

    (@ebiebzh0)

    hi @hjogiupdraftplus

    yes, that works (eventhough I am removing this for all users, not only logged in users, since we do not use 2FA or even guteberg blocks at all).

    Plugin Support aporter

    (@aporter)

    Hi,

    Version 5.2.1 has just been released.

    This should resolve the above issue.

    Let me know if you have any other problems.

    Best Wishes,

    Ashley

    Thread Starter sissi

    (@ebiebzh0)

    thank you, works fine!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘When 2FA is disabled, do not enqueue_gutenberg_block_scripts’ is closed to new replies.