[wp-trac] [WordPress Trac] #54959: Incorrect type in docblock for `translations_api` and `translations_api_result` hooks
WordPress Trac
noreply at wordpress.org
Thu Jan 27 21:13:23 UTC 2022
#54959: Incorrect type in docblock for `translations_api` and
`translations_api_result` hooks
---------------------------------+-----------------------
Reporter: volodymyrkolesnykov | Owner: audrasjb
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.0
Component: I18N | Version: 4.0
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: docs
---------------------------------+-----------------------
Changes (by audrasjb):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"52645" 52645]:
{{{
#!CommitTicketReference repository="" revision="52645"
Docs: Fix incorrect type in `translations_api` and
`translations_api_result` docblocks.
Before this changeset, `translation_api` and `translation_api_result`
filters were incorrectly marked as taking object as their first argument.
The correct type is an array as `json_decode()` is asked to return an
associative array.
Props volodymyrkolesnykov.
Fixes #54959.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54959#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list