Skip to content

Commit

Permalink
Ensure consistent return type in `WP_Navigation_Block_Renderer::get_m…
Browse files Browse the repository at this point in the history
…arkup_for_inner_block()` (WordPress#59820)

* Fix for WordPress#59814

Fixes get_markup_for_inner_block()

* fix WPCS issues
  • Loading branch information
afragen authored Mar 14, 2024
1 parent c913f35 commit 87d3d4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-library/src/navigation/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ private static function get_markup_for_inner_block( $inner_block ) {
if ( static::does_block_need_a_list_item_wrapper( $inner_block ) ) {
return '<li class="wp-block-navigation-item">' . $inner_block_content . '</li>';
}

return $inner_block_content;
}

return $inner_block_content;
}

/**
Expand Down

0 comments on commit 87d3d4f

Please sign in to comment.