Make WordPress Core

Changeset 63596


Ignore:
Timestamp:
09/10/2026 10:57:55 PM (4 weeks 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.

Location:
trunk/src/wp-includes
Files:
6 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         */
  • 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 */
  • trunk/src/wp-includes/html-api/class-wp-html-tag-processor.php

    r63515 r63596  
    27902790         *
    27912791         * @param string $comparable_name The attribute name in its comparable form.
    2792          * @return string|boolean|null Value of enqueued update if present, otherwise false.
     2792         * @return string|bool|null Value of enqueued update if present, otherwise false.
    27932793         */
    27942794        private function get_enqueued_attribute_value( string $comparable_name ) {
  • trunk/src/wp-includes/media.php

    r63497 r63596  
    21212121         * @since 6.7.1
    21222122         *
    2123          * @param boolean $enabled Whether auto-sizes for lazy loaded images is enabled.
     2123         * @param bool $enabled Whether auto-sizes for lazy loaded images is enabled.
    21242124         */
    21252125        if ( ! apply_filters( 'wp_img_tag_add_auto_sizes', true ) ) {
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php

    r63320 r63596  
    387387         * @since 6.3.0 Adds revisions count and rest URL href to version-history.
    388388         *
    389          * @param integer $id ID.
     389         * @param int $id ID.
    390390         * @return array Links for the given post.
    391391         */
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php

    r63529 r63596  
    968968         * @since 5.8.0
    969969         *
    970          * @param integer $id ID.
     970         * @param int $id ID.
    971971         * @return array Links for the given post.
    972972         */
Note: See TracChangeset for help on using the changeset viewer.