• Resolved cleoni

    (@cleoni)


    Great plugin (wish I did not need to use it though)

    There should be an option for permanently hide those warnings in the backoffice – In 99% of cases it is not the final user having implemented deprecated jquery functions in plugins, so the warnings are most cases displayed to the wrong person.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Yes, please. This is needed very much.

    Plugin Author Marius L. J.

    (@clorith)

    The site admin (who are the ones that can see the warning) still need to know about the deprecations. They either need to update their plugins/themes, reach out to the authors of the plugins or themes they use, or find replacements, all of this falls to the site admin, so it’s important to be consistent in making sure this is done.

    Thread Starter cleoni

    (@cleoni)

    @marius, I reckon that knowing which plugins need to be updated can a plus. But there are also situations where these messages are a problem.
    For example, if I set up a wordpress site for a customer he will bounce to me complaining he sees “strange messages” he does not understand.
    According to his judgment, now that I upgraded WP it’s working worse than before. It’s clearly not true, but I see their point.
    In cases where I do not have nor the time nor the budget to chase authors of plugins I will have to end up rolling back to WP 5.4 and just apply security updates.
    A good alternative to this as far as I see it, is to let the admin decide if he wants to see warnings or not. I some cases I will look at them and act, in others I cannot do it.

    Anyway, it’s clearly just my opinion.

    @marius Would it be so hard for you to leave this choice to the admins?

    We work in many WP sites all day long and the error messages affect every single page loads without adding any use at all. The plugin authors are working on fixing their code and it might take a while.

    So there’s use in getting that error message hundreds of times a day.

    Came here to request this. You should be able to dismiss these warnings (temporarily or permanently). Leaving a nag notice on every backend screen that you can’t hide is poor UX. Some plugins are waiting on updates from developers, or some sites need to roll with the old code for now. Thanks for the consideration.

    Just hide it for now ??

    add_filter( ‘admin_footer’, ‘removes_migrate_warning’, 99 );

    function removes_migrate_warning()
    {
    ?>
    <style type=”text/css”>
    .jquery-migrate-deprecation-notice {
    display: none !important
    }
    </style>

    <?php
    }

    Thread Starter cleoni

    (@cleoni)

    @mastafu thanks for the patch! it works for me!

    Plugin Author Marius L. J.

    (@clorith)

    Although hiding the notice works, you are doing a disservice as the temporary fix this plugin provides will not work after WordPress 5.6 is released. The plugins or themes you use that are not compatible should be updating (the code these warnings are showing has been unsupported for a near a decade, hence this direct approach).

    That said, I’m not without reason, there’s been a fair few posts, although a noticeable minority, so the release just now (version 1.1.0) lets you dismiss the dashboard notice, in favor of an admin bar entry that will alert you to any ongoing issues (this will also capture any deprecations on the frontend of your site when browsed by a site admin, to give a more complete image of what needs addressing).

    Please note that WordPress 5.6 is scheduled to enter beta on October 20th, so informing plugin and theme authors who have not updated their code is perfectly reasonable ??

    Mariu, where can we find the option to disable the notification?

    Plugin Author Marius L. J.

    (@clorith)

    You just dismiss it, and that’s it ?? The dismissal has been made persistent (you can restore it via the admin bar menu later if you feel like you need it)

    Marius, firstly thanks for an extremely useful plugin. I dismissed the alert and then restored via the admin bar. However now it seems that if I dismiss it again it is persisting?

    • This reply was modified 4 years, 1 month ago by npboy99.
    Plugin Author Marius L. J.

    (@clorith)

    @npboy99 if you’re experiencing issues, I do ask that you create your own topic, so we don’t send a lot of notifications to the owner of this topic, but if you do so I’d be happy to troubleshoot this with you.

    @marius, doesnt work. I dismiss it every day. and it keeps showing up ??

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Option to hide that warnings’ is closed to new replies.