[wp-trac] [WordPress Trac] #64511: Deprecate wp_sanitize_script_attributes()

WordPress Trac noreply at wordpress.org
Fri Jan 23 17:02:44 UTC 2026


#64511: Deprecate wp_sanitize_script_attributes()
---------------------------------------------+-------------------------
 Reporter:  jonsurrell                       |       Owner:  jonsurrell
     Type:  task (blessed)                   |      Status:  closed
 Priority:  normal                           |   Milestone:  7.0
Component:  Script Loader                    |     Version:
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+-------------------------
Changes (by jonsurrell):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"61518" 61518]:
 {{{
 #!CommitTicketReference repository="" revision="61518"
 Script Loader: Deprecate `wp_sanitize_script_attributes()`.

 The function is no longer used by WordPress and better alternatives are
 available: `wp_get_script_tag()` and `wp_get_inline_script_tag()`.

 Developed in https://github.com/WordPress/wordpress-develop/pull/10742.

 Follow-up to [61415], [61485].

 Props jonsurrell, westonruter.
 Fixes #64511. See #64442.
 }}}

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


More information about the wp-trac mailing list