From 30484f027cdf7206f69ab99f4d1ab2c60629cf32 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Thu, 17 May 2012 20:59:33 -0600 Subject: [PATCH] Remove old admin notice for tagline --- inc/cleanup.php | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/inc/cleanup.php b/inc/cleanup.php index 0d54378..cb6728a 100644 --- a/inc/cleanup.php +++ b/inc/cleanup.php @@ -558,24 +558,6 @@ add_filter('get_avatar', 'roots_remove_self_closing_tags'); add_filter('comment_id_fields', 'roots_remove_self_closing_tags'); add_filter('post_thumbnail_html', 'roots_remove_self_closing_tags'); -// check to see if the tagline is set to default -// show an admin notice to update if it hasn't been changed -// you want to change this or remove it because it's used as the description in the RSS feed -function roots_notice_tagline() { - global $current_user; - $user_id = $current_user->ID; - - if (!get_user_meta($user_id, 'ignore_tagline_notice')) { - echo '
'; - echo '

', sprintf(__('Please update your site tagline Hide Notice', 'roots'), admin_url('options-general.php'), '?tagline_notice_ignore=0'), '

'; - echo '
'; - } -} - -if ((get_option('blogdescription') === 'Just another WordPress site') && isset($_GET['page']) != 'theme_activation_options') { - add_action('admin_notices', 'roots_notice_tagline'); -} - // Don't return the default description in the RSS feed if it hasn't been changed function roots_remove_default_description($val) { if ($val === 'Just another WordPress site') { @@ -586,16 +568,6 @@ function roots_remove_default_description($val) { } add_filter('get_bloginfo_rss', 'roots_remove_default_description'); -function roots_notice_tagline_ignore() { - global $current_user; - $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'); - // allow more tags in TinyMCE including