Skip to content

jQuery .load() function is deprecated and should be replaced (used in /assets/js/src/metabox.js) #2173

@vytisbulkevicius

Description

@vytisbulkevicius

Description:

We use

jQuery( window ).load( function () {
	jQuery.neveMetabox.init();
} );

in /assets/js/src/metabox.js
jQuery(window).load was deprecated in 1.8, and removed in jquery 3.0 and we should probably use it as an "Event Handler Attachment":

jQuery( window ).on("load", function() {
        jQuery.neveMetabox.init();
});

Reference:

Reported here:
https://wordpress.org/support/topic/jquery-migrate-helper-warnings-encountered-8/#post-13522104

Technical info

  • WordPress version: 5.5.1
  • Theme version: 2.8.2

Metadata

Metadata

Labels

bugThis label could be used to identify issues that are caused by a defect in the product.releasedIndicate that an issue has been resolved and released in a particular version of the product.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions