[wp-trac] [WordPress Trac] #56324: Improve the description of param `$list ` in `wp_list_sort()` docblock
WordPress Trac
noreply at wordpress.org
Tue Aug 2 14:42:41 UTC 2022
#56324: Improve the description of param `$list ` in `wp_list_sort()` docblock
--------------------------+-------------------------
Reporter: audrasjb | Owner: audrasjb
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 6.1
Component: General | Version:
Severity: normal | Keywords: needs-patch
Focuses: docs |
--------------------------+-------------------------
This issue was reported by @rherault on DevHub User Contributed notes.
> In the documentation, the first parameter :
> (array) (Required) An array of objects to sort.
> can be :
> (array) (Required) An array of objects or array to sort.
>
> because this parameter accepts both array of array and array of objects.
https://developer.wordpress.org/reference/functions/wp_list_sort/
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56324>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list