Skip to content

Commit

Permalink
Update order of the sub navigation items (#703)
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenDufresne committed Jul 16, 2024
1 parent d98ee0c commit 9f5384c
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,20 +299,21 @@ 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(
'label' => __( 'My patterns', 'wporg-patterns' ),
'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(
Expand Down

0 comments on commit 9f5384c

Please sign in to comment.