Make WordPress Core

Changeset 53780


Ignore:
Timestamp:
07/26/2022 12:58:11 PM (3 years ago)
Author:
audrasjb
Message:

Docs: Improve parameter descriptions in render_block and render_block_* filters.

The former $block_content parameter descriptions were too opinionated as block content can be appended, prepended, nested, removed, etc.

Props milana_cap.
Fixes #56286.
See #55646.

File:
1 edited

Legend:

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

    r52299 r53780  
    278278         * @since 5.9.0 The `$instance` parameter was added.
    279279         *
    280          * @param string   $block_content The block content about to be appended.
     280         * @param string   $block_content The block content.
    281281         * @param array    $block         The full block, including name and attributes.
    282282         * @param WP_Block $instance      The block instance.
     
    293293         * @since 5.9.0 The `$instance` parameter was added.
    294294         *
    295          * @param string   $block_content The block content about to be appended.
     295         * @param string   $block_content The block content.
    296296         * @param array    $block         The full block, including name and attributes.
    297297         * @param WP_Block $instance      The block instance.
Note: See TracChangeset for help on using the changeset viewer.