Skip to content

Commit

Permalink
first_run logically makes sense now
Browse files Browse the repository at this point in the history
  • Loading branch information
swalkinshaw committed Nov 5, 2012
1 parent 658f831 commit 4db03fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/activation.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function roots_activation_options_page_capability($capability) {
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'),
Expand All @@ -47,7 +47,7 @@ function roots_theme_activation_options_add_page() {

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,
Expand Down Expand Up @@ -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">

Expand Down

0 comments on commit 4db03fb

Please sign in to comment.