• I’d like to request the ability to toggle off the errors that the plugin is inserting at the top of every page.

    In my case my troublesome plugin is Magic Fields v. 1.x, which is vital to my site and which is no longer supported by the devs. I’ll eventually need to upgrade to a different plugin, but this will take quite a bit of work on my part given how extensively Magic Fields is implemented on my site.

    The jQuery Migrate Helper plugin is hugely helpful in identifying this problem, but now that I know what it is the plugin is only in the way. My only other option, prior to the development work required by moving to a new custom fields plugin, is to revert to WordPress 5.4. ??

    Thank you for considering!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Marius L. J.

    (@clorith)

    Hiya,

    So the plugin is “naggy by design”, so to speak, there’s no immediate plans to remove this as it is a bit of a heavy-handed approach to have you reach out to developers to maintain their code, or to remind you to find a replacement.

    That said, it sounds like you may be a bit familiar with code, so you can manually enable this your self as follows:

    
    <?php
    function wp_432432587432974239_enqueues() {
    	wp_enqueue_script( 'jquery-migrate' );
    }
    add_action( 'wp_eneueue_scripts', 'wp_432432587432974239_enqueues', 1 );
    

    I would like to put in a strong warning though, if you do put this in manually, the jQuery Migrate library in WordPress is being upgraded in version 5.6, which would likely lead to major breakage for you if you are doing this and haven’t already fixed your scripts. As such we do not recommend this approach at all, but rather resolving the underlying issues which will remove the warnings ??

    function custom_mute_jquery_migrator() {
    echo ‘<script>jQuery.migrateMute = true;</script>’;
    }
    add_action( ‘wp_head’, ‘custom_mute_jquery_migrator’ );
    add_action( ‘admin_head’, ‘custom_mute_jquery_migrator’ );

    it removes the console log for users but not the Warnings encountered in admin bar . any help? thanks

    Hi,

    Did you find a solution to hide the message warning in admin bar ?

    Thanks in advance,

    Best

    Thread Starter Darren_S

    (@darren_s)

    Sandra: I ended up installing the “WP Downgrade | Specific Core Version” plugin to downgrade to WP 5.4 (and prevent automated upgrades).

    It’s definitely a temporary fix, but because my offending plugin (MagicFields 1.x) is no longer supported I’m going to have to set aside a large chunk of hours to move to a different custom fields plugin and migrate all my custom fields data.

    But sticking with 5.4 at least makes my site usable in the meantime.

    Hi Darren,
    Thanks for your answer and your experience !

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Disable Error Warnings’ is closed to new replies.