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

git-svn-id: https://develop.svn.wordpress.org/trunk@1691 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2004-09-18 06:08:40 +00:00
parent 85acf6cfc4
commit 15d8a376f7
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>");