trim() plugin URL before deciding whether to show a link. props Gary King. fixes #4633

git-svn-id: https://develop.svn.wordpress.org/trunk@6020 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2007-09-03 16:55:10 +00:00
parent a629aa8c5f
commit 10754e7332
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ function get_plugin_data( $plugin_file ) {
$name = $plugin_name[1];
$name = trim( $name );
$plugin = $name;
if ('' != $plugin_uri[1] && '' != $name ) {
if ('' != trim($plugin_uri[1]) && '' != $name ) {
$plugin = '<a href="' . trim( $plugin_uri[1] ) . '" title="'.__( 'Visit plugin homepage' ).'">'.$plugin.'</a>';
}