From 9f5384cf694c8c709bb1c1da20e1e85a048b6fdf Mon Sep 17 00:00:00 2001 From: Steven Dufresne Date: Tue, 16 Jul 2024 09:55:41 +0900 Subject: [PATCH] Update order of the sub navigation items (#703) --- .../wporg-pattern-directory-2024/inc/block-config.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/public_html/wp-content/themes/wporg-pattern-directory-2024/inc/block-config.php b/public_html/wp-content/themes/wporg-pattern-directory-2024/inc/block-config.php index ae4bc73c..39a787f7 100644 --- a/public_html/wp-content/themes/wporg-pattern-directory-2024/inc/block-config.php +++ b/public_html/wp-content/themes/wporg-pattern-directory-2024/inc/block-config.php @@ -299,9 +299,14 @@ function add_site_navigation_menus( $menus ) { $categories = array(); $statuses = array(); + $menu[] = array( + 'label' => __( 'New pattern', 'wporg-patterns' ), + 'url' => '/new-pattern/', + ); $menu[] = array( 'label' => __( 'My favorites', 'wporg-patterns' ), 'url' => '/favorites/', + 'className' => 'has-separator', ); if ( is_user_logged_in() ) { $menu[] = array( @@ -309,10 +314,6 @@ function add_site_navigation_menus( $menus ) { 'url' => '/my-patterns/', ); } - $menu[] = array( - 'label' => __( 'New pattern', 'wporg-patterns' ), - 'url' => '/new-pattern/', - ); $current_status = isset( $wp_query->query['status'] ) ? $wp_query->query['status'] : false; $statuses = array(