Skip to content
This repository
Browse code

Clean up 26deb02

  • Loading branch information...
commit 9a48ccff70be35478bd78b1d74d089ee650a7317 1 parent 998474f
Ben Word authored November 02, 2012

Showing 1 changed file with 2 additions and 3 deletions. Show diff stats Hide diff stats

  1. 5  lib/activation.php
5  lib/activation.php
@@ -277,12 +277,11 @@ function roots_theme_activation_action() {
277 277
 
278 278
     $roots_nav_theme_mod = false;
279 279
 
280  
-    $existing_nav = wp_get_nav_menu_object('Primary Navigation');
281  
-    if (!$existing_nav) {
  280
+    $primary_nav = wp_get_nav_menu_object('Primary Navigation');
  281
+    if (!$primary_nav) {
282 282
       $primary_nav_id = wp_create_nav_menu('Primary Navigation', array('slug' => 'primary_navigation'));
283 283
       $roots_nav_theme_mod['primary_navigation'] = $primary_nav_id;
284 284
     } else {
285  
-      $primary_nav = wp_get_nav_menu_object('Primary Navigation');
286 285
       $roots_nav_theme_mod['primary_navigation'] = $primary_nav->term_id;
287 286
     }
288 287
 

0 notes on commit 9a48ccf

Please sign in to comment.
Something went wrong with that request. Please try again.