Changes between Version 17 and Version 18 of Ticket #58873
- Timestamp:
- 08/24/2026 05:33:14 PM (7 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #58873 – Description
v17 v18 5 5 == Proposal == 6 6 7 Add the same filter to `WP_Scripts`. Before printing a script's localized data, translations, and inline scripts, apply a `script_ data_{$handle}` filter. If it returns a non-empty array, print it as a JSON script tag with an ID the script can look up, such as `wp-script-data-{$handle}`.7 Add the same filter to `WP_Scripts`. Before printing a script's localized data, translations, and inline scripts, apply a `script_client_data_{$handle}` filter. If it returns a non-empty array, print it as a JSON script tag with an ID the script can look up, such as `wp-script-client-data-{$handle}`. 8 8 9 9 Follow the Script Modules implementation in `WP_Script_Modules::print_script_module_data()`, including its JSON encoding flags and charset handling.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)