Fixes #108 - bug on activation if no pages exists

This commit is contained in:
Scott Walkinshaw
2011-07-31 11:44:03 -06:00
parent 5d298fbead
commit 1014ddb0f7

View File

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