first_run logically makes sense now

This commit is contained in:
Scott Walkinshaw
2012-11-05 13:37:26 -07:00
parent 658f8318ce
commit 4db03fb63d

View File

@@ -26,7 +26,7 @@ add_filter('option_page_capability_roots_activation_options', 'roots_activation_
function roots_theme_activation_options_add_page() {
$roots_activation_options = roots_get_theme_activation_options();
if ($roots_activation_options['first_run'] === 'true') {
if ($roots_activation_options['first_run']) {
$theme_page = add_theme_page(
__('Theme Activation', 'roots'),
__('Theme Activation', 'roots'),
@@ -47,7 +47,7 @@ add_action('admin_menu', 'roots_theme_activation_options_add_page', 50);
function roots_get_default_theme_activation_options() {
$default_theme_activation_options = array(
'first_run' => false,
'first_run' => true,
'create_front_page' => false,
'change_permalink_structure' => false,
'change_uploads_folder' => false,
@@ -76,7 +76,7 @@ function roots_theme_activation_options_render_page() { ?>
$roots_default_activation_options = roots_get_default_theme_activation_options();
?>
<input type="hidden" value="true" name="roots_theme_activation_options[first_run]">
<input type="hidden" value="false" name="roots_theme_activation_options[first_run]">
<table class="form-table">