Skip to content

Commit

Permalink
Block Hooks API: Update doc block for block_core_navigation_insert_ho…
Browse files Browse the repository at this point in the history
…oked_blocks (#58378)

Co-authored-by: Bernie Reiter <96308+ockham@users.noreply.github.com>
  • Loading branch information
2 people authored and cbravobernal committed Jan 30, 2024
1 parent 7ec2d92 commit ba74bfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/navigation/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -1358,7 +1358,7 @@ function block_core_navigation_get_most_recently_published_navigation() {
* @param WP_Post $post `wp_navigation` post object corresponding to the block.
* @return string Serialized inner blocks in mock Navigation block wrapper, with hooked blocks inserted, if any.
*/
function block_core_navigation_insert_hooked_blocks( $inner_blocks, $post = null ) {
function block_core_navigation_insert_hooked_blocks( $inner_blocks, $post ) {
$before_block_visitor = null;
$after_block_visitor = null;
$hooked_blocks = get_hooked_blocks();
Expand Down

0 comments on commit ba74bfc

Please sign in to comment.