From 1115edab8d8b60c268479685b329df3b517daf1c Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Tue, 26 Sep 2023 17:52:11 -0400 Subject: [PATCH] Header menu: Update items in menu Fixes #316, fixes #360 --- .../blocks/global-header-footer/blocks.php | 39 ++++++++----------- 1 file changed, 17 insertions(+), 22 deletions(-) diff --git a/mu-plugins/blocks/global-header-footer/blocks.php b/mu-plugins/blocks/global-header-footer/blocks.php index a86ed1e5b..1477f8417 100644 --- a/mu-plugins/blocks/global-header-footer/blocks.php +++ b/mu-plugins/blocks/global-header-footer/blocks.php @@ -422,38 +422,38 @@ function get_global_menu_items() { 'type' => 'custom', ), array( - 'title' => esc_html_x( 'Download & Extend', 'Menu item title', 'wporg' ), - 'url' => 'https://wordpress.org/download/', + 'title' => esc_html_x( 'Showcase', 'Menu item title', 'wporg' ), + 'url' => 'https://wordpress.org/showcase/', + 'type' => 'custom', + ), + array( + 'title' => esc_html_x( 'Hosting', 'Menu item title', 'wporg' ), + 'url' => 'https://wordpress.org/hosting/', + 'type' => 'custom', + ), + array( + 'title' => esc_html_x( 'Extend', 'Menu item title', 'wporg' ), + 'url' => '#', 'type' => 'custom', 'submenu' => array( - array( - 'title' => esc_html_x( 'Get WordPress', 'Menu item title', 'wporg' ), - 'url' => 'https://wordpress.org/download/', - 'type' => 'custom', - ), array( 'title' => esc_html_x( 'Themes', 'Menu item title', 'wporg' ), 'url' => 'https://wordpress.org/themes/', 'type' => 'custom', ), - array( - 'title' => esc_html_x( 'Patterns', 'Menu item title', 'wporg' ), - 'url' => 'https://wordpress.org/patterns/', - 'type' => 'custom', - ), array( 'title' => esc_html_x( 'Plugins', 'Menu item title', 'wporg' ), 'url' => 'https://wordpress.org/plugins/', 'type' => 'custom', ), array( - 'title' => esc_html_x( 'Mobile', 'Menu item title', 'wporg' ), - 'url' => 'https://wordpress.org/mobile/', + 'title' => esc_html_x( 'Patterns', 'Menu item title', 'wporg' ), + 'url' => 'https://wordpress.org/patterns/', 'type' => 'custom', ), array( - 'title' => esc_html_x( 'Hosting', 'Menu item title', 'wporg' ), - 'url' => 'https://wordpress.org/hosting/', + 'title' => esc_html_x( 'Blocks', 'Menu item title', 'wporg' ), + 'url' => 'https://wordpress.org/blocks/', 'type' => 'custom', ), array( @@ -542,11 +542,6 @@ function get_global_menu_items() { 'url' => 'https://wordpress.org/about/', 'type' => 'custom', ), - array( - 'title' => esc_html_x( 'Showcase', 'Menu item title', 'wporg' ), - 'url' => 'https://wordpress.org/showcase/', - 'type' => 'custom', - ), array( 'title' => esc_html_x( 'Enterprise', 'Menu item title', 'wporg' ), 'url' => 'https://wordpress.org/enterprise/', @@ -558,7 +553,7 @@ function get_global_menu_items() { 'type' => 'custom', ), array( - 'title' => esc_html_x( 'WordPress Swag Store ↗︎', 'Menu item title', 'wporg' ), + 'title' => esc_html_x( 'Swag Store ↗︎', 'Menu item title', 'wporg' ), 'url' => 'https://mercantile.wordpress.org/', 'type' => 'custom', ),