Skip to content

Commit

Permalink
Fix php linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tellthemachines committed Aug 13, 2021
1 parent 9cedaf3 commit 8b615bb
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 @@ -264,12 +264,11 @@ function render_block_core_navigation( $attributes, $content, $block ) {
$is_list_open = false;
$inner_blocks_html .= '</ul>';
}
if( 'core/site-title' === $inner_block->name || 'core/site-logo' === $inner_block->name ) {
if ( 'core/site-title' === $inner_block->name || 'core/site-logo' === $inner_block->name ) {
$inner_blocks_html .= '<li>' . $inner_block->render() . '</li>';
} else {
$inner_blocks_html .= $inner_block->render();
}

}

$block_styles = isset( $attributes['styles'] ) ? $attributes['styles'] : '';
Expand Down

0 comments on commit 8b615bb

Please sign in to comment.