Make WordPress Core


Ignore:
Timestamp:
03/01/2020 10:36:38 AM (5 years ago)
Author:
johnbillion
Message:

Docs: Use more specific types in parameter descriptions in place of mixed.

See #48303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/post.php

    r47372 r47397  
    20202020 * @since 5.1.0
    20212021 *
    2022  * @param mixed $terms Raw term data from the 'tax_input' field.
    2023  * @return array
     2022 * @param string $taxonomy The taxonomy name.
     2023 * @param array  $terms    Raw term data from the 'tax_input' field.
     2024 * @return int[] Array of sanitized term IDs.
    20242025 */
    20252026function taxonomy_meta_box_sanitize_cb_checkboxes( $taxonomy, $terms ) {
     
    20322033 * @since 5.1.0
    20332034 *
    2034  * @param mixed $terms Raw term data from the 'tax_input' field.
     2035 * @param string       $taxonomy The taxonomy name.
     2036 * @param array|string $terms    Raw term data from the 'tax_input' field.
    20352037 * @return array
    20362038 */
Note: See TracChangeset for help on using the changeset viewer.