Fixes #108 - bug on activation if no pages exists
This commit is contained in:
@@ -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
|
// set WordPress to have the front page display the Home page as a static page
|
||||||
$default_pages = array('Home');
|
$default_pages = array('Home');
|
||||||
$existing_pages = get_pages();
|
$existing_pages = get_pages();
|
||||||
|
$temp = array();
|
||||||
|
|
||||||
foreach ($existing_pages as $page) {
|
foreach ($existing_pages as $page) {
|
||||||
$temp[] = $page->post_title;
|
$temp[] = $page->post_title;
|
||||||
|
|||||||
Reference in New Issue
Block a user