Make WordPress Core


Ignore:
Timestamp:
08/17/2026 01:13:55 PM (3 months ago)
Author:
SergeyBiryukov
Message:

Docs: Remove a blank line between @param and @return in core docblocks.

The ​PHP inline documentation standards place @return immediately after the last @param tag, with no blank line between them:

/**
 * Summary.
 *
 * @since x.x.x
 *
 * @param string $var Description.
 * @return string Description.
 */

This corrects 44 docblocks across 33 files in src/wp-includes that used a line break between the two tags.

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

Props mukesh27, dhruvang21.
See #65818, #65860.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-supports/block-style-variations.php

    r62732 r63320  
    1414 *
    1515 * @param string $class_string CSS class string to look for a variation in.
    16  *
    1716 * @return array|null The block style variation name if found.
    1817 */
    … …  
    7675 *
    7776 * @param array $parsed_block The parsed block.
    78  *
    7977 * @return array The parsed block with block style variation classname added.
    8078 */
    … …  
    216214 * @param  string $block_content Rendered block content.
    217215 * @param  array  $block         Block object.
    218  *
    219216 * @return string                Filtered block content.
    220217 */
Note: See TracChangeset for help on using the changeset viewer.