Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
draganescu committed Feb 6, 2020
1 parent 956bdff commit 081c57a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/block-library/src/navigation/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ function render_block_navigation( $content, $block ) {
* @return string Returns an HTML list from innerBlocks.
*/
function core_block_navigation_build_html( $attributes, $block, $colors, $font_sizes ) {
$html = '';
$classes = array_merge(
$html = '';
$classes = array_merge(
$colors['css_classes'],
$font_sizes['css_classes']
);
Expand All @@ -205,7 +205,7 @@ function core_block_navigation_build_html( $attributes, $block, $colors, $font_s

foreach ( (array) $block['innerBlocks'] as $key => $block ) {
$has_submenu = count( (array) $block['innerBlocks'] ) > 0;
$is_active = ! empty( $block['attrs']['id'] ) && ( get_the_ID() === $block['attrs']['id'] );
$is_active = ! empty( $block['attrs']['id'] ) && ( get_the_ID() === $block['attrs']['id'] );

$class_name = ! empty( $block['attrs']['className'] ) ? implode( ' ', (array) $block['attrs']['className'] ) : false;

Expand Down

0 comments on commit 081c57a

Please sign in to comment.