Make WordPress Core


Ignore:
Timestamp:
09/10/2026 10:57:55 PM (2 months ago)
Author:
westonruter
Message:

Docs: Use the bool and int short type forms in PHPDoc.

The PHP inline documentation standards call for bool and int in @param, @return and @global tags, but six docblocks in src/wp-includes still carried the long boolean and integer spellings.

Developed in ​https://github.com/WordPress/wordpress-develop/pull/13476.
Follow-up to r63495.

Props njones35.
See #65860.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/global-styles-and-settings.php

    r63320 r63596  
    498498 * @param WP_Block_Type $block_type The block's type.
    499499 * @param string|array  $target     The desired selector's target, `root` or array path.
    500  * @param boolean       $fallback   Whether to fall back to broader selector.
     500 * @param bool          $fallback   Whether to fall back to broader selector.
    501501 * @return string|null CSS selector or `null` if no selector available.
    502502 */
Note: See TracChangeset for help on using the changeset viewer.