From c986e12de6ebfbd99bb75a6d48b6b5e28f0b4a84 Mon Sep 17 00:00:00 2001 From: buttle Date: Thu, 28 Apr 2022 19:13:23 +0200 Subject: [PATCH] display collection menu item when wordpress api timeout --- view/common/wordpress-menu.phtml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/view/common/wordpress-menu.phtml b/view/common/wordpress-menu.phtml index 81d42e1..13bcfbe 100644 --- a/view/common/wordpress-menu.phtml +++ b/view/common/wordpress-menu.phtml @@ -58,12 +58,12 @@ if (count($items[0]) == 0) { // we did not retrieve a menu from the wordpress site // let's create a default menu if ($wordpress_site) { - $project_item = [ + $collections_item = [ "id" => 1, - "title" => "Project", - "url" => $wordpress_site + "title" => "Collections", + "url" => "/" ]; - $items[0][1] = $project_item; + $items[0][1] = $collections_item; } $login_item = [ "id" => 2,