Skip to content

Commit

Permalink
Format php.
Browse files Browse the repository at this point in the history
  • Loading branch information
jffng authored and scruffian committed Dec 6, 2022
1 parent 7b8c24a commit 6dc44f0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/block-library/src/navigation/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,13 +275,14 @@ function block_core_navigation_get_classic_menu_fallback() {
return $classic_nav_menu;
}
}

// Otherwise return the most recently created classic menu.
usort( $classic_nav_menus,
function($a, $b) {
if ($a->term_id < $b->term_id) {
usort(
$classic_nav_menus,
function( $a, $b ) {
if ( $a->term_id < $b->term_id ) {
return 1;
} elseif ($a->term_id > $b->term_id) {
} elseif ( $a->term_id > $b->term_id ) {
return -1;
} else {
return 0;
Expand Down

0 comments on commit 6dc44f0

Please sign in to comment.