Make WordPress Core


Ignore:
Timestamp:
03/03/2025 06:06:16 PM (14 months ago)
Author:
joemcgill
Message:

Editor: Update packages for 6.8 Beta 1.

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

Props mamaduka, joemcgill, desrosj.
See #62887.

File:
1 edited

Legend:

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

    r59775 r59906  
    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     );
    10590    // Apply Block Hooks.
    106     $content = apply_block_hooks_to_content( $content, $reusable_block );
    107     // Remove block wrapper.
    108     $content = remove_serialized_parent_block( $content );
     91    $content = apply_block_hooks_to_content_from_post_object( $content, $reusable_block );
    10992
    11093    $content = do_blocks( $content );
Note: See TracChangeset for help on using the changeset viewer.