From 8d7839b14cce7e33bdfd34ba9fff5f300f204b28 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 7 Mar 2007 03:05:41 +0000 Subject: [PATCH] Standardize on 'url' for fetching the blog's url. Props rob1n. fixes #3623 git-svn-id: http://svn.automattic.com/wordpress/trunk@4983 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/themes.php | 2 +- wp-content/themes/default/searchform.php | 2 +- wp-content/themes/default/sidebar.php | 10 +++++----- wp-includes/general-template.php | 19 +++++++++++++------ wp-includes/js/tinymce/wp-mce-help.php | 2 +- wp-includes/link-template.php | 2 +- wp-includes/post.php | 4 ++-- wp-login.php | 10 +++++----- 8 files changed, 29 insertions(+), 22 deletions(-) diff --git a/wp-admin/themes.php b/wp-admin/themes.php index c3a9c6186..b784295f9 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -26,7 +26,7 @@ require_once('admin-header.php');

-

View site »'), get_bloginfo('home') . '/'); ?>

+

View site »'), get_bloginfo('url') . '/'); ?>

/"> +
diff --git a/wp-content/themes/default/sidebar.php b/wp-content/themes/default/sidebar.php index a2319c35c..7954a8cf7 100644 --- a/wp-content/themes/default/sidebar.php +++ b/wp-content/themes/default/sidebar.php @@ -17,23 +17,23 @@

You are currently browsing the archives for the category.

-

You are currently browsing the weblog archives +

You are currently browsing the weblog archives for the day .

-

You are currently browsing the weblog archives +

You are currently browsing the weblog archives for .

-

You are currently browsing the weblog archives +

You are currently browsing the weblog archives for the year .

-

You have searched the weblog archives +

You have searched the weblog archives for ''. If you are unable to find anything in these search results, you can try one of these links.

-

You are currently browsing the weblog archives.

+

You are currently browsing the weblog archives.

diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 64a94c8e7..11c565bfa 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -60,9 +60,11 @@ function wp_meta() { function bloginfo($show='') { $info = get_bloginfo($show); - if (!strstr($show, 'url') && //don't filter URLs - !strstr($show, 'directory') && - !strstr($show, 'home')) { + + // Don't filter URL's. + if (strpos($show, 'url') === false || + strpos($show, 'directory') === false || + strpos($show, 'home') === false) { $info = apply_filters('bloginfo', $info, $show); $info = convert_chars($info); } else { @@ -72,13 +74,18 @@ function bloginfo($show='') { echo $info; } - +/** + * Note: some of these values are DEPRECATED. Meaning they could be + * taken out at any time and shouldn't be relied upon. Options + * without "// DEPRECATED" are the preferred and recommended ways + * to get the information. + */ function get_bloginfo($show='') { switch($show) { case 'url' : - case 'home' : - case 'siteurl' : + case 'home' : // DEPRECATED + case 'siteurl' : // DEPRECATED $output = get_option('home'); break; case 'wpurl' : diff --git a/wp-includes/js/tinymce/wp-mce-help.php b/wp-includes/js/tinymce/wp-mce-help.php index fe90b0db9..6d5f1e4cf 100644 --- a/wp-includes/js/tinymce/wp-mce-help.php +++ b/wp-includes/js/tinymce/wp-mce-help.php @@ -167,7 +167,7 @@ header('Content-Type: text/html; charset=' . get_bloginfo('charset'));