Skip to content

Commit

Permalink
navigation: remove is level zero arg
Browse files Browse the repository at this point in the history
  • Loading branch information
retrofox committed Feb 3, 2020
1 parent 5164cfe commit a039f32
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/block-library/src/navigation/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,10 @@ function render_block_navigation( $content, $block ) {
* @param array $block The NavigationItem block.
* @param array $colors Contains inline styles and CSS classes to apply to navigation item.
* @param array $font_sizes Contains inline styles and CSS classes to apply to navigation item.
* @param bool $is_level_zero True whether is main menu (level zero). Otherwise, False.
*
* @return string Returns an HTML list from innerBlocks.
*/
function build_navigation_html( $attributes, $block, $colors, $font_sizes, $is_level_zero = true ) {
function build_navigation_html( $attributes, $block, $colors, $font_sizes ) {
$html = '';
$classes = array_merge(
$colors['css_classes'],
Expand Down

0 comments on commit a039f32

Please sign in to comment.