[wp-trac] [WordPress Trac] #64091: Add input validation for $data parameter in wp_add_inline_script()
WordPress Trac
noreply at wordpress.org
Mon Oct 13 13:13:06 UTC 2025
#64091: Add input validation for $data parameter in wp_add_inline_script()
-------------------------------+------------------------------
Reporter: parinpanjari | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Script Loader | Version: 6.8.3
Severity: normal | Resolution:
Keywords: 2nd-opinion close | Focuses:
-------------------------------+------------------------------
Changes (by swissspidy):
* keywords: 2nd-opinion => 2nd-opinion close
* focuses: coding-standards =>
* component: General => Script Loader
Comment:
It's really up to the developer to provide the correct data type. Can't be
hard to provide a non-empty string. If they do something wrong, they
deserve to get a warning. So IMHO we shouldn't add this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64091#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list