Make WordPress Core


Ignore:
Timestamp:
03/19/2024 08:05:48 AM (12 months ago)
Author:
youknowriad
Message:

Editor: Update Packages with the latest bug fixes for 6.5 RC 3

It includes all the backports from this Gutenberg PR https://github.com/WordPress/gutenberg/pull/59949/

Props get_dave, youknowriad.
See #60315.

File:
1 edited

Legend:

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

    r57814 r57851  
    136136                return '<li class="wp-block-navigation-item">' . $inner_block_content . '</li>';
    137137            }
    138 
    139             return $inner_block_content;
    140         }
     138        }
     139
     140        return $inner_block_content;
    141141    }
    142142
     
    14661466function block_core_navigation_update_ignore_hooked_blocks_meta( $post ) {
    14671467    /*
     1468     * In this scenario the user has likely tried to create a navigation via the REST API.
     1469     * In which case we won't have a post ID to work with and store meta against.
     1470     */
     1471    if ( empty( $post->ID ) ) {
     1472        return $post;
     1473    }
     1474
     1475    /*
    14681476     * We run the Block Hooks mechanism to inject the `metadata.ignoredHookedBlocks` attribute into
    14691477     * all anchor blocks. For the root level, we create a mock Navigation and extract them from there.
Note: See TracChangeset for help on using the changeset viewer.