[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 14:36:59 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:
-------------------------------+------------------------------

Comment (by knutsp):

 WordPress should not prevent PHP errors/warnings from developers.

 "Doing it wrong" is for common misconceptions or bad practices, or when
 the best working/correct way of doing things has changed, things that can
 not be catched by a simple PHP error or warning.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64091#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list