From bb5b298e3969e7d9c2107802b56ae494a2b8990f Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Fri, 28 Jun 2024 16:05:54 -0400 Subject: [PATCH] Local navigation: Put "personal" links at the end of the menu, with separator See https://github.com/WordPress/wporg-mu-plugins/issues/621 --- .../themes/wporg-themes-2024/inc/block-config.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/wp-content/themes/wporg-themes-2024/inc/block-config.php b/source/wp-content/themes/wporg-themes-2024/inc/block-config.php index dd9c639..d96321d 100644 --- a/source/wp-content/themes/wporg-themes-2024/inc/block-config.php +++ b/source/wp-content/themes/wporg-themes-2024/inc/block-config.php @@ -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/', @@ -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(