[wp-trac] [WordPress Trac] #52264: Rename `$array` when used in `@param` tags
WordPress Trac
noreply at wordpress.org
Wed Feb 17 04:53:58 UTC 2021
#52264: Rename `$array` when used in `@param` tags
----------------------------+---------------------
Reporter: audrasjb | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 5.7
Component: General | Version:
Severity: normal | Resolution:
Keywords: | Focuses: docs
----------------------------+---------------------
Comment (by peterwilsoncc):
Reviewing the `src` directory:
* Occurs 25 times in 11 files
* `WP_Query::fill_query_vars` parameter could certainly do with a more
descriptive name
* `add_magic_quotes()` walks an array recursively and slashes it -- could
probably be more descriptive
The following seem to be legitimate descriptive names, they do an action
on a generic array
* `wp_parse_str()` and filter of the same name
* `wp_array_slice_assoc()`
* `_wp_array_get()`
* `_rest_array_intersect_key_recursive()`
* `rest_validate_array_contains_unique_items()` (params `$array1`,
`$array2`)
Remaining items are in libraries:
* Requests
* ID3
* IXR
* sodium compatibility
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52264#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list