Make WordPress Core

Changeset 52354


Ignore:
Timestamp:
12/11/2021 11:14:17 AM (18 months ago)
Author:
audrasjb
Message:

Docs: Docblock adjustments in some 5.9 block related functions.

Adds missing @since mention to wp_enqueue_block_style() and _wp_multiple_block_styles(), and a few other minor changes.

Follow-up to [52069].

See #53359.

File:
1 edited

Legend:

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

    r52345 r52354  
    11921192
    11931193/**
    1194  * Enqueue a stylesheet for a specific block.
     1194 * Enqueues a stylesheet for a specific block.
    11951195 *
    11961196 * If the theme has opted-in to separate-styles loading,
     
    11981198 * otherwise when the block inits.
    11991199 *
     1200 * @since 5.9.0
     1201 *
    12001202 * @param string $block_name The block-name, including namespace.
    12011203 * @param array  $args       An array of arguments [handle,src,deps,ver,media].
    1202  *
    12031204 * @return void
    12041205 */
     
    12211222     *                        the content needs to be returned so the function parameter
    12221223     *                        is to ensure the content exists.
    1223      *
    1224      * @return string
     1224     * @return string Block content.
    12251225     */
    12261226    $callback = static function( $content ) use ( $args ) {
     
    12761276 * Allow multiple block styles.
    12771277 *
     1278 * @since 5.9.0
     1279 *
    12781280 * @param array $metadata Metadata for registering a block type.
    1279  *
    1280  * @return array
     1281 * @return array Metadata for registering a block type.
    12811282 */
    12821283function _wp_multiple_block_styles( $metadata ) {
Note: See TracChangeset for help on using the changeset viewer.