display collection menu item when wordpress api timeout

This commit is contained in:
buttle 2022-04-28 19:13:23 +02:00
parent 24afe3a03a
commit c986e12de6
1 changed files with 4 additions and 4 deletions

View File

@ -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,