Make WordPress Core

Changes between Version 15 and Version 16 of Ticket #58873


Ignore:
Timestamp:
08/20/2026 04:32:34 PM (3 months ago)
Author:
jonsurrell
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #58873

    • Property Milestone Future Release → 7.2
    • Property Status reopened → accepted
    • Property Owner set to jonsurrell
  • Ticket #58873 – Description

    v15 v16  
    1 
    21This ticket began as a request for a function to replace `wp_localize_script()`. The discussion rejected that. `wp_localize_script()` is for translations and casts values to strings (#25280). `wp_add_inline_script()` works but means writing JavaScript in PHP strings, adds a blocking script, and uses a global variable.
    32