mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-12 18:42:03 +01:00
trim() plugin URL before deciding whether to show a link. props Gary King. fixes #4633
git-svn-id: http://svn.automattic.com/wordpress/trunk@6020 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
03d6c4d0ba
commit
6cfdd1934b
@ -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>';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user