first_run logically makes sense now
This commit is contained in:
@@ -26,7 +26,7 @@ add_filter('option_page_capability_roots_activation_options', 'roots_activation_
|
|||||||
function roots_theme_activation_options_add_page() {
|
function roots_theme_activation_options_add_page() {
|
||||||
$roots_activation_options = roots_get_theme_activation_options();
|
$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_page = add_theme_page(
|
||||||
__('Theme Activation', 'roots'),
|
__('Theme Activation', 'roots'),
|
||||||
__('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() {
|
function roots_get_default_theme_activation_options() {
|
||||||
$default_theme_activation_options = array(
|
$default_theme_activation_options = array(
|
||||||
'first_run' => false,
|
'first_run' => true,
|
||||||
'create_front_page' => false,
|
'create_front_page' => false,
|
||||||
'change_permalink_structure' => false,
|
'change_permalink_structure' => false,
|
||||||
'change_uploads_folder' => 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();
|
$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">
|
<table class="form-table">
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user