Remove json2 enqueue (no longer available in WP 6.9)#848
Closed
DanieleAlessandra wants to merge 1 commit intodevelopfrom
Closed
Remove json2 enqueue (no longer available in WP 6.9)#848DanieleAlessandra wants to merge 1 commit intodevelopfrom
DanieleAlessandra wants to merge 1 commit intodevelopfrom
Conversation
Contributor
|
Closing this for #845 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR removes all wp_enqueue_script( 'json2' ) calls from the Freemius SDK to avoid missing dependency warnings introduced in WordPress 6.9.
Details
The json2 script was historically enqueued as a companion to jQuery to support very old browsers lacking native JSON support.
This is reflected in the codebase, where each removed json2 enqueue was immediately preceded by wp_enqueue_script( 'jquery' ).
Since WordPress 6.9 has removed the json2 handle and all supported browsers provide native JSON, this dependency is no longer needed.
The jQuery enqueues are intentionally left unchanged.
Impact
• No functional changes
• Removes admin console warnings in WordPress 6.9+
• Keeps the SDK aligned with modern WordPress standards