Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Clean up 26deb02

  • Loading branch information...
commit 9a48ccff70be35478bd78b1d74d089ee650a7317 1 parent 998474f
Ben Word retlehs authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/activation.php
5 lib/activation.php
View
@@ -277,12 +277,11 @@ function roots_theme_activation_action() {
$roots_nav_theme_mod = false;
- $existing_nav = wp_get_nav_menu_object('Primary Navigation');
- if (!$existing_nav) {
+ $primary_nav = wp_get_nav_menu_object('Primary Navigation');
+ if (!$primary_nav) {
$primary_nav_id = wp_create_nav_menu('Primary Navigation', array('slug' => 'primary_navigation'));
$roots_nav_theme_mod['primary_navigation'] = $primary_nav_id;
} else {
- $primary_nav = wp_get_nav_menu_object('Primary Navigation');
$roots_nav_theme_mod['primary_navigation'] = $primary_nav->term_id;
}
Please sign in to comment.
Something went wrong with that request. Please try again.