Make WordPress Core

Changeset 53799


Ignore:
Timestamp:
07/30/2022 02:07:55 PM (19 months ago)
Author:
audrasjb
Message:

Docs: Fix $feature parameter type in block_has_support().

In block_has_support() docblock, the $feature parameter is an array, not a string.

Props Soean, audrasjb.
Fixes #56307.
See #55646.

File:
1 edited

Legend:

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

    r53718 r53799  
    10181018 *
    10191019 * @param WP_Block_Type $block_type Block type to check for support.
    1020  * @param string        $feature    Name of the feature to check support for.
     1020 * @param array         $feature    Path to a specific feature to check support for.
    10211021 * @param mixed         $default    Optional. Fallback value for feature support. Default false.
    10221022 * @return bool Whether the feature is supported.
Note: See TracChangeset for help on using the changeset viewer.