• Resolved Anantajit JG

    (@anantajitjg)


    I can’t dismiss the deprecation notices shown in the admin screen generated by jQuery Migrate Helper plugin. Notice in the Dashboard is dismissible.

    The methods such as size, load are removed in the jQuery version 3.0 only, and I believe the jQuery version in the WordPress will get updated to 3.0 in WordPress version 5.6 only. Currently, jQuery Migrate Helper plugin triggers notices that are not dismissible for these methods. Most of these deprecation warnings are coming from some of the libraries used in the plugin. Some of these libraries are also not actively developed. So, I believe a certain time should be provided to developers for making this transition. Most users are using jQuery Migrate Helper plugin, and they are getting these notices. These notices are confusing to normal users. So, please make this notices dismissible.

    Enable jQuery Migrate Helper v1.0.1

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

    (@clorith)

    Hiya,

    The notice is dismissable by resolving the issues, this is an active choice to avoid anyone falling into a lull by installing this plugin (which will not help them once jQuery 3.x is introduced).

    Good news is, it’ll only show the admin notice if an actual deprecation notice from jquery-migrate is thrown, and will also inform the user of what plugin/theme caused it.

    The features jquery-migrate report have been deprecated for many years (my favorite example being the .live function, deprecated since the end of 2011, that’s nearly 9 years now), and that the news of this move were published to the WordPress make blog for core, and in an e-mail blast to all plugin authors on www.remarpro.com before the release. This plugin provides that added timeframe those who have not updated their code yet need after the release of WordPress 5.5, and it is verbal in showing the admin notices so that users know what is going on, and to find a replacement if no updates are forthcoming.

    Thank you for creating this amazing plugin. Want to ask what does this mean? And how can I get rid of it?

    jQuery Migrate Helper — Warnings encountered
    This page generated the following warnings:

    jQuery.fn.live() is deprecated

    add_action('admin_head', 'add_style_admin');
    
    function add_style_admin() {
      echo '<style>
    .notice-error{
        display:none
        } 
      </style>';
    }

    just add in theme function.php

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘I can’t dismiss the admin notices generated by jQuery Migrate Helper plugin’ is closed to new replies.