Do not try to link to theme and author uris that are not there. Bug 295.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1691 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rboren 2004-09-18 06:08:40 +00:00
parent 6cfc34b013
commit dcb4808bfc
1 changed files with 2 additions and 2 deletions

View File

@ -506,11 +506,11 @@ function get_theme_data($theme_file) {
$name = $theme_name[1];
$name = trim($name);
$theme = $name;
if ('' != $theme_uri && '' != $name) {
if ('' != $theme_uri[1] && '' != $name) {
$theme = __("<a href='{$theme_uri[1]}' title='Visit theme homepage'>{$theme}</a>");
}
if ('' == $author_uri) {
if ('' == $author_uri[1]) {
$author = $author_name[1];
} else {
$author = __("<a href='{$author_uri[1]}' title='Visit author homepage'>{$author_name[1]}</a>");