From 16583d1d27a3c28e858309825dba8ef1f87f9704 Mon Sep 17 00:00:00 2001 From: Scott Walkinshaw Date: Mon, 11 Jul 2011 15:24:00 -0600 Subject: [PATCH] Minor code cleanup --- inc/roots-actions.php | 6 +++--- inc/roots-cleanup.php | 8 ++++---- inc/roots-widgets.php | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/inc/roots-actions.php b/inc/roots-actions.php index 671c565..f8ed1cb 100644 --- a/inc/roots-actions.php +++ b/inc/roots-actions.php @@ -119,7 +119,7 @@ function roots_1140_header_before() { global $roots_options; $roots_css_framework = $roots_options['css_framework']; if ($roots_css_framework === '1140') { - echo "
\n"; + echo '
', "\n"; } } @@ -128,7 +128,7 @@ function roots_1140_header_after() { $roots_css_framework = $roots_options['css_framework']; if ($roots_css_framework === '1140') { echo "
\n"; - echo "
\n"; + echo '
', "\n"; } } @@ -137,7 +137,7 @@ function roots_1140_footer_before() { $roots_css_framework = $roots_options['css_framework']; if ($roots_css_framework === '1140') { echo "
\n"; - echo "
\n"; + echo '
', "\n"; } } diff --git a/inc/roots-cleanup.php b/inc/roots-cleanup.php index 434802d..7ef94b7 100644 --- a/inc/roots-cleanup.php +++ b/inc/roots-cleanup.php @@ -152,8 +152,8 @@ add_filter('the_generator', 'roots_no_generator'); // cleanup wp_head function roots_noindex() { - if ('0' == get_option('blog_public')) - echo "\n"; + if (get_option('blog_public') === '0') + echo '', "\n"; } function roots_rel_canonical() { @@ -163,7 +163,7 @@ function roots_rel_canonical() { if (!$id = $wp_the_query->get_queried_object_id()) return; $link = get_permalink($id); - echo "\n"; + echo "\t\n"; } // remove CSS from recent comments widget @@ -176,7 +176,7 @@ function roots_remove_recent_comments_style() { // remove CSS from gallery function roots_gallery_style($css) { - return preg_replace("##s", '', $css); + return preg_replace("//s", '', $css); } function roots_head_cleanup() { diff --git a/inc/roots-widgets.php b/inc/roots-widgets.php index 5a068b4..b5ed01d 100644 --- a/inc/roots-widgets.php +++ b/inc/roots-widgets.php @@ -18,7 +18,7 @@ class roots_vcard extends WP_Widget { $email = $instance['email']; ?> - +


@@ -83,4 +83,4 @@ class roots_vcard extends WP_Widget { register_widget('roots_vcard'); -?> \ No newline at end of file +?>