activation options! huge thanks to @johnraz (#208) - closes #6

This commit is contained in:
Ben Word
2012-01-04 12:10:34 -07:00
parent 333ad3a8b7
commit 01b6f7710b
3 changed files with 371 additions and 132 deletions

View File

@@ -419,7 +419,7 @@ function roots_notice_tagline() {
}
}
if (get_option('blogdescription') === 'Just another WordPress site') {
if ((get_option('blogdescription') === 'Just another WordPress site') && isset($_GET['page']) != 'theme_activation_options') {
add_action('admin_notices', 'roots_notice_tagline');
}
@@ -428,7 +428,7 @@ function roots_notice_tagline_ignore() {
$user_id = $current_user->ID;
if (isset($_GET['tagline_notice_ignore']) && '0' == $_GET['tagline_notice_ignore']) {
add_user_meta($user_id, 'ignore_tagline_notice', 'true', true);
}
}
}
add_action('admin_init', 'roots_notice_tagline_ignore');