From ae5fbef066a75719f1d18511364318c3edca3b05 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 6 Oct 2005 00:04:59 +0000 Subject: [PATCH] Don't run bloginfo filters on URIs. fixes #1545 #1410 #1729 git-svn-id: http://svn.automattic.com/wordpress/trunk@2935 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/template-functions-general.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/wp-includes/template-functions-general.php b/wp-includes/template-functions-general.php index 340dc577c..52ed3325d 100644 --- a/wp-includes/template-functions-general.php +++ b/wp-includes/template-functions-general.php @@ -58,9 +58,13 @@ function wp_meta() { } function bloginfo($show='') { - $info = get_bloginfo($show); + $info = get_bloginfo($show); + if ( ! strstr($info, 'url') ) { $info = apply_filters('bloginfo', $info, $show); - echo convert_chars($info); + $info = convert_chars($info); + } + + echo $info; } function get_bloginfo($show='') {