projects
/
WP-Themes
/
petoskey.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
388fdfc
)
Update the navigation
author
Steve Sutton
<steve@gaslightmedia.com>
Tue, 13 Jun 2017 20:22:36 +0000
(16:22 -0400)
committer
Steve Sutton
<steve@gaslightmedia.com>
Tue, 13 Jun 2017 20:22:36 +0000
(16:22 -0400)
get rid of an error
lib/navigation.php
patch
|
blob
|
history
diff --git
a/lib/navigation.php
b/lib/navigation.php
index
d229765
..
f2efdbf
100644
(file)
--- a/
lib/navigation.php
+++ b/
lib/navigation.php
@@
-158,8
+158,9
@@
function glm_side_menu($mobile = false) {
global $post;
$sideMenu = $allMenu = $pageMenuId = array();
-
- $menu = wp_get_nav_menu_object($locations['sidenav']);
+ if (($locations = get_nav_menu_locations()) && isset($locations['sidenav'])){
+ $menu = wp_get_nav_menu_object($locations['sidenav']);
+ }
$menu_items = wp_get_nav_menu_items($menu->term_id);
foreach ((array) $menu_items as $key => $menu_item) {