Opened 3 months ago
Closed 3 months ago
#54044 closed defect (bug) (fixed)
Docs: Provide a more accurate description for functions `wp_localize_script`, `wp_set_script_translations`, `wp_script_add_data` and `wp_style_add_data`
Reported by: | audrasjb | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.9 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Script Loader | Keywords: | has-patch |
Focuses: | docs | Cc: |
Description
For each of wp_localize_script
, wp_set_script_translations
, wp_script_add_data
and wp_style_add_data
function, the DocBlock description specifies that it "Works only if the script|stylesheet has already been added".
It's not clear whether "added" refers to "registered", "enqueued" or even "printed". I think we should probably replace "added" with "registered" as it's more accurate.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Docs: Provide a more accurate description for functions
wp_localize_script
,wp_set_script_translations
,wp_script_add_data
andwp_style_add_data