Make WordPress Core


Ignore:
Timestamp:
02/07/2025 03:44:07 PM (18 months ago)
Author:
joemcgill
Message:

Editor: Update packages for 6.8 pre-Betas.

Syncs @wordpress/* packages to the 'latest' npm tag.

Props mamaduka, joemcgill, youknowriad, swissspidy, sergiomdgomes, gziolo.
See #62887.

File:
1 edited

Legend:

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

    r58275 r59775  
    8888        }
    8989
     90        $ignored_hooked_blocks = get_post_meta( $attributes['ref'], '_wp_ignored_hooked_blocks', true );
     91        if ( ! empty( $ignored_hooked_blocks ) ) {
     92                $ignored_hooked_blocks  = json_decode( $ignored_hooked_blocks, true );
     93                $attributes['metadata'] = array(
     94                        'ignoredHookedBlocks' => $ignored_hooked_blocks,
     95                );
     96        }
     97
     98        // Wrap in "Block" block so the Block Hooks algorithm can insert blocks
     99        // that are hooked as first or last child of `core/block`.
     100        $content = get_comment_delimited_block_content(
     101                'core/block',
     102                $attributes,
     103                $content
     104        );
     105        // Apply Block Hooks.
     106        $content = apply_block_hooks_to_content( $content, $reusable_block );
     107        // Remove block wrapper.
     108        $content = remove_serialized_parent_block( $content );
     109
    90110        $content = do_blocks( $content );
    91111        unset( $seen_refs[ $attributes['ref'] ] );
Note: See TracChangeset for help on using the changeset viewer.