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/class-wp-theme-json.php

    r63529 r63596  
    30103010         * @since 6.7.0 `ref` resolution of background properties, and assigning custom default values.
    30113011         *
    3012          * @param array   $styles           Styles to process.
    3013          * @param array   $settings         Theme settings.
    3014          * @param array   $properties       Properties metadata.
    3015          * @param array   $theme_json       Theme JSON array.
    3016          * @param string  $selector         The style block selector.
    3017          * @param boolean $use_root_padding Whether to add custom properties at root level.
     3012         * @param array  $styles           Styles to process.
     3013         * @param array  $settings         Theme settings.
     3014         * @param array  $properties       Properties metadata.
     3015         * @param array  $theme_json       Theme JSON array.
     3016         * @param string $selector         The style block selector.
     3017         * @param bool  $use_root_padding Whether to add custom properties at root level.
    30183018         * @return array Returns the modified $declarations.
    30193019         */
Note: See TracChangeset for help on using the changeset viewer.