From d2fc51e3d93f6a59238cbc9b8fa202ecf32fcbdb Mon Sep 17 00:00:00 2001 From: Ben Word Date: Thu, 17 May 2012 20:57:50 -0600 Subject: [PATCH] Remove default tagline admin notice, hide from feed Rather than showing an admin notice if the tagline is the default, let's just not return that default tagline in the RSS feed. --- inc/cleanup.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/inc/cleanup.php b/inc/cleanup.php index 82a5ff1..0d54378 100644 --- a/inc/cleanup.php +++ b/inc/cleanup.php @@ -576,6 +576,16 @@ if ((get_option('blogdescription') === 'Just another WordPress site') && isset($ 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') { + return; + } else { + return $val; + } +} +add_filter('get_bloginfo_rss', 'roots_remove_default_description'); + function roots_notice_tagline_ignore() { global $current_user; $user_id = $current_user->ID;