[wp-trac] [WordPress Trac] #63398: Incorrect filter in "wp_get_inline_script_tag()" / "wp_print_inline_script_tag()" phpdoc
WordPress Trac
noreply at wordpress.org
Mon May 5 21:49:48 UTC 2025
#63398: Incorrect filter in "wp_get_inline_script_tag()" /
"wp_print_inline_script_tag()" phpdoc
---------------------------+-----------------------------
Reporter: petitphp | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Script Loader | Version: 5.7
Severity: minor | Keywords:
Focuses: docs |
---------------------------+-----------------------------
The phpdoc for the
`wp_get_inline_script_tag()`/`wp_print_inline_script_tag()` functions
incorrectly states that it is possible to use the `wp_script_attributes`
filter to modify the attributes for inline scripts.
The documentation need to be updated to indicate that
`wp_inline_script_attributes` should be used.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63398>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list