Make WordPress Core


Ignore:
Timestamp:
06/30/2021 05:19:59 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve documentation for optional parameters in WP_Theme_JSON_Resolver methods per the documentation standards.

Move add_action() call to wp-includes/default-filters.php.

Follow-up to [50959], [51221].

See #52628, #53461.

File:
1 edited

Legend:

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

    r51268 r51284  
    220220    $metadata = apply_filters( 'block_type_metadata', $metadata );
    221221
    222     /**
    223      * Add `style` and `editor_style` for core blocks if missing.
    224      */
     222    // Add `style` and `editor_style` for core blocks if missing.
    225223    if ( ! empty( $metadata['name'] ) && 0 === strpos( $metadata['name'], 'core/' ) ) {
    226224        $block_name = str_replace( 'core/', '', $metadata['name'] );
Note: See TracChangeset for help on using the changeset viewer.