Use stylesheet_url from bloginfo().

git-svn-id: http://svn.automattic.com/wordpress/trunk@1639 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rboren 2004-09-12 20:30:49 +00:00
parent fec36ee655
commit 807c0a77c3
1 changed files with 4 additions and 4 deletions

View File

@ -80,17 +80,17 @@ function get_bloginfo($show='') {
case 'stylesheet_url': case 'stylesheet_url':
$output = get_settings('stylesheet');; $output = get_settings('stylesheet');;
if (empty($output) || $output == 'default') { if (empty($output) || $output == 'default') {
$output = get_settings('home') . "/wp-layout.css"; $output = get_settings('siteurl') . "/wp-layout.css";
} else { } else {
$output = get_settings('home') . "/wp-content/themes/$output/style.css"; $output = get_settings('siteurl') . "/wp-content/themes/$output/style.css";
} }
break; break;
case 'template_url': case 'template_url':
$output = get_settings('template');; $output = get_settings('template');;
if (empty($output) || $output == 'default') { if (empty($output) || $output == 'default') {
$output = get_settings('home'); $output = get_settings('siteurl');
} else { } else {
$output = get_settings('home') . "/wp-content/themes/$output"; $output = get_settings('siteurl') . "/wp-content/themes/$output";
} }
break; break;
case 'admin_email': case 'admin_email':