Changeset 57851 for trunk/src/wp-includes/blocks/navigation.php
- Timestamp:
- 03/19/2024 08:05:48 AM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/navigation.php
r57814 r57851 136 136 return '<li class="wp-block-navigation-item">' . $inner_block_content . '</li>'; 137 137 } 138 139 return $inner_block_content; 140 }138 } 139 140 return $inner_block_content; 141 141 } 142 142 … … 1466 1466 function block_core_navigation_update_ignore_hooked_blocks_meta( $post ) { 1467 1467 /* 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 /* 1468 1476 * We run the Block Hooks mechanism to inject the `metadata.ignoredHookedBlocks` attribute into 1469 1477 * 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.