Make WordPress Core


Ignore:
Timestamp:
10/11/2026 11:32:58 PM (43 hours ago)
Author:
SergeyBiryukov
Message:

Docs: Remove variable names from @return tags.

Per the ​inline documentation standards, @return tags should only contain the type and an optional description, not the name of the returned variable. This commit removes the variable names from all remaining @return tags in core.

Developed in ​https://github.com/WordPress/wordpress-develop/pull/13844.

Props Soean, mukesh27.
See #65860.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-theme-json.php

    r64238 r64304  
    34313431         *
    34323432         * @param array $declarations List of declarations.
    3433          * @return array $declarations List of declarations filtered.
     3433         * @return array List of declarations filtered.
    34343434         */
    34353435        private static function update_separator_declarations( $declarations ) {
Note: See TracChangeset for help on using the changeset viewer.