Make WordPress Core


Ignore:
Timestamp:
09/30/2024 05:10:00 AM (13 months ago)
Author:
noisysocks
Message:

Editor: Update packages for 6.7 Beta 1.

Syncs @wordpress/* packages to the wp-6.7 npm tag.

See #61906.

File:
1 edited

Legend:

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

    r59079 r59119  
    15001500function block_core_navigation_insert_hooked_blocks( $inner_blocks, $post ) {
    15011501    $mock_navigation_block = block_core_navigation_mock_parsed_block( $inner_blocks, $post );
    1502     $hooked_blocks         = get_hooked_blocks();
    1503     $before_block_visitor  = null;
    1504     $after_block_visitor   = null;
     1502
     1503    if ( function_exists( 'apply_block_hooks_to_content' ) ) {
     1504        $mock_navigation_block_markup = serialize_block( $mock_navigation_block );
     1505        return apply_block_hooks_to_content( $mock_navigation_block_markup, $post, 'insert_hooked_blocks' );
     1506    }
     1507
     1508    $hooked_blocks        = get_hooked_blocks();
     1509    $before_block_visitor = null;
     1510    $after_block_visitor  = null;
    15051511
    15061512    if ( ! empty( $hooked_blocks ) || has_filter( 'hooked_block_types' ) ) {
Note: See TracChangeset for help on using the changeset viewer.