WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/01/2020 10:36:38 AM (19 months 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-includes/blocks.php

    r46896 r47397  
    312312 * @since 5.3.1
    313313 *
    314  * @param mixed          $value             The attribute value to filter.
    315  * @param array[]|string $allowed_html      An array of allowed HTML elements
    316  *                                          and attributes, or a context name
    317  *                                          such as 'post'.
    318  * @param string[]       $allowed_protocols Array of allowed URL protocols.
    319  * @return array The filtered and sanitized result.
     314 * @param string[]|string $value             The attribute value to filter.
     315 * @param array[]|string  $allowed_html      An array of allowed HTML elements
     316 *                                           and attributes, or a context name
     317 *                                           such as 'post'.
     318 * @param string[]        $allowed_protocols Array of allowed URL protocols.
     319 * @return string[]|string The filtered and sanitized result.
    320320 */
    321321function filter_block_kses_value( $value, $allowed_html, $allowed_protocols = array() ) {
Note: See TracChangeset for help on using the changeset viewer.