[wp-trac] [WordPress Trac] #47104: Fix incorrect @see notation in the DocBlock for wp_localize_script()
WordPress Trac
noreply at wordpress.org
Fri May 3 05:57:13 UTC 2019
#47104: Fix incorrect @see notation in the DocBlock for wp_localize_script()
--------------------------+-----------------------------
Reporter: coffee2code | Owner: (none)
Type: defect (bug) | Status: new
Priority: low | Milestone: Awaiting Review
Component: General | Version:
Severity: trivial | Keywords: has-patch
Focuses: docs |
--------------------------+-----------------------------
The function `wp_localize_script()` defines a `@see` reference in its
DocBlock as such:
`* @see WP_Dependencies::localize()`
That referenced method has since apparently been moved into another class,
so the line should be changed to:
`* @see WP_Scripts::localize()`
This was originally reported by @shamim51 in #meta4416 because the `@see`
caused !DevHub to generate a link to a nonexistent method
([https://developer.wordpress.org/reference/functions/wp_localize_script
/#see-also see the link in question], though it may get corrected manually
on !DevHub at some point)`.
Patch attached.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47104>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list