Okay
  Public Ticket #2597322
Deprecated Functions in Theme
Closed

Comments

  • Rohit Sahai started the conversation

    Kindly update theme to use latest functions. Thanks

    Previously logged deprecation notices

    The following are deprecations logged from the front-end of your site, or while the deprecation box was disabled.

    TimeNoticePage2020-11-06 10:22:31https://www.sabranginternational.com/wp-content/themes/sonaar/dist/js/sonaar.scripts.min.js: jQuery.fn.size() is deprecated; use the .length propertyhttps://www.sabranginternational.com/?elementor-preview=5427&ver=16046581342020-11-06 10:22:31https://www.sabranginternational.com/wp-content/themes/sonaar/dist/js/sonaar.scripts.min.js: jQuery.browser is deprecatedhttps://www.sabranginternational.com/?elementor-preview=5427&ver=16046581342020-11-11 09:54:47jQuery.browser is deprecatedhttps://www.sabranginternational.com/artists/
  •  1,103
    Max replied

    Hi,

    Im trying to check for the deprecated code, specially for the jQuery.fn.size

    Could you please show me how I can reproduce the issue on my computer?

    Thanks,


    Max from the Sonaar.io Crew

  • Rohit Sahai replied

    Use https://wordpress.org/plugins/enable-jquery-migrate-helper/ 

    It shows the Deprecated Functions

    jQuery Migrate Helper

    Right now you are using the Enable jQuery Migrate Helper plugin to enable support for old JavaScript code that uses deprecated functions in the jQuery JavaScript library. Please note that this is a temporary solution which will only work between WordPress 5.5.0 and 5.6.0 is, and is not meant as a permanent fix for unsupported code.

    If you get warnings, you should check the theme or plugin that generated them for an update. There will very likely be one you can install. When you have updated your plugins and themes, and there are no more warnings, please deactivate Enable jQuery Migrate Helper.

    * A script, a file, or some other piece of code is deprecated when its developers are in the process of replacing it with more modern code or removing it entirely.

  •  1,103
    Max replied

    Got it,

    will check and fix it in a future theme update.

    Thanks,


    Max from the Sonaar.io Crew