Skip to content

Commit

Permalink
Local navigation: Put "personal" links at the end of the menu, with s…
Browse files Browse the repository at this point in the history
  • Loading branch information
ryelle committed Jun 28, 2024
1 parent cc6fa38 commit bb5b298
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/wp-content/themes/wporg-themes-2024/inc/block-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,6 @@ function add_site_navigation_menus( $menus ) {

$menu = array();

$menu[] = array(
'label' => __( 'My favorites', 'wporg-themes' ),
'url' => '/browse/favorites/',
'className' => 'favorites' === $current_browse ? 'current-menu-item' : '',
);
$menu[] = array(
'label' => __( 'Submit a theme', 'wporg-themes' ),
'url' => '/getting-started/',
Expand All @@ -205,6 +200,11 @@ function add_site_navigation_menus( $menus ) {
'label' => __( 'Commercial theme companies', 'wporg-themes' ),
'url' => '/commercial/',
);
$menu[] = array(
'label' => __( 'My favorites', 'wporg-themes' ),
'url' => '/browse/favorites/',
'className' => ( 'favorites' === $current_browse ? 'current-menu-item ' : '' ) . 'has-separator',
);

$browse_menu = array(
array(
Expand Down

0 comments on commit bb5b298

Please sign in to comment.