Ticket #2135: admin-functions.diff
| File admin-functions.diff, 1.2 KB (added by , 20 years ago) |
|---|
-
wp-admin/admin-functions.php
1485 1485 $name = trim($name); 1486 1486 $plugin = $name; 1487 1487 if ('' != $plugin_uri[1] && '' != $name) { 1488 $plugin = '<a href="' .$plugin_uri[1].'" title="'.__('Visit plugin homepage').'">'.$plugin.'</a>';1488 $plugin = '<a href="' . trim($plugin_uri[1]) . '" title="' . __('Visit plugin homepage') . '">' . $plugin . '</a>'; 1489 1489 } 1490 1490 1491 1491 if ('' == $author_uri[1]) { 1492 1492 $author = $author_name[1]; 1493 1493 } else { 1494 $author = '<a href="' .$author_uri[1].'" title="'.__('Visit author homepage').'">'.$author_name[1].'</a>';1494 $author = '<a href="' . trim($author_uri[1]) . '" title="' . __('Visit author homepage'). '">' . $author_name[1] . '</a>'; 1495 1495 } 1496 1496 1497 return array ('Name' => $name, 'Title' => $plugin, 'Description' => $description, 'Author' => $author, 'Version' => $version, 'Template' => $template[1]);1497 return array ('Name' => $name, 'Title' => $plugin, 'Description' => trim($description), 'Author' => trim($author), 'Version' => trim($version), 'Template' => $template[1]); 1498 1498 } 1499 1499 1500 1500 function get_plugins() {