Support » Theme: Newsphere » assets/script.js contains deprecated JQuery function calls

  • Javascript files “/wp-content/themes/newsphere/assets/script.js“,
    /assets/marquee/jquery.marquee.js“, and
    contain code that has been deprecated in the new JQuery version in the update to WP5.6. The problem presented itself (in my case) as the ‘White Screen of Death’ (WSoD) after upgrading to WP 5.6, which could be temporarily ‘fixed’ by clearing browser cache.

    The jQuery Migrate Helper plugin shows the following among other errors:

    jQuery.fn.hover() event shorthand is deprecated event shorthand is deprecated
    jQuery.fn.scroll() event shorthand is deprecated
    jQuery.fn.load() event shorthand is deprecated

    Easy fix is to change:
    .click(func) to .on(‘click’, func)
    .load(func) to .on(‘load’, func)


Viewing 1 replies (of 1 total)
  • Hello @mlg4035
    We fixed the issue in the last update.
    Have you updated the theme?
    Please update the theme and clear your cache and check once on private mode.

    Thank you

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.