Skip to content

Remove json2 enqueue (no longer available in WP 6.9)#848

Closed
DanieleAlessandra wants to merge 1 commit intodevelopfrom
feature/daniele/remove-json2
Closed

Remove json2 enqueue (no longer available in WP 6.9)#848
DanieleAlessandra wants to merge 1 commit intodevelopfrom
feature/daniele/remove-json2

Conversation

@DanieleAlessandra
Copy link
Collaborator

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

@bahiirwa
Copy link
Contributor

Closing this for #845

@bahiirwa bahiirwa closed this Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants