From 1014ddb0f71f969409e14ba0fb98cbe03757c82f Mon Sep 17 00:00:00 2001 From: Scott Walkinshaw Date: Sun, 31 Jul 2011 11:44:03 -0600 Subject: [PATCH] Fixes #108 - bug on activation if no pages exists --- inc/roots-activation.php | 1 + 1 file changed, 1 insertion(+) diff --git a/inc/roots-activation.php b/inc/roots-activation.php index e56b333..2f10c4b 100644 --- a/inc/roots-activation.php +++ b/inc/roots-activation.php @@ -10,6 +10,7 @@ if (is_admin() && 'themes.php' === $pagenow && isset( $_GET['activated'])) { // set WordPress to have the front page display the Home page as a static page $default_pages = array('Home'); $existing_pages = get_pages(); + $temp = array(); foreach ($existing_pages as $page) { $temp[] = $page->post_title;