Make WordPress Core


Ignore:
Timestamp:
07/02/2021 07:01:22 PM (3 years ago)
Author:
desrosj
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].

Props SergeyBiryukov.
Merges [51284] to the 5.8 branch.
See #52628, #53461.

Location:
branches/5.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.8

  • branches/5.8/src/wp-includes/blocks.php

    r51291 r51315  
    215215    $metadata = apply_filters( 'block_type_metadata', $metadata );
    216216
    217     /**
    218      * Add `style` and `editor_style` for core blocks if missing.
    219      */
     217    // Add `style` and `editor_style` for core blocks if missing.
    220218    if ( ! empty( $metadata['name'] ) && 0 === strpos( $metadata['name'], 'core/' ) ) {
    221219        $block_name = str_replace( 'core/', '', $metadata['name'] );
Note: See TracChangeset for help on using the changeset viewer.