Changeset 4036
- Timestamp:
- 07/23/06 19:20:50 (2 years ago)
- Files:
-
- branches/2.0/wp-admin/admin-functions.php (modified) (2 diffs)
- branches/2.0/wp-includes/functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/2.0/wp-admin/admin-functions.php
r3980 r4036 1483 1483 preg_match("|Author URI:(.*)|i", $plugin_data, $author_uri); 1484 1484 if (preg_match("|Version:(.*)|i", $plugin_data, $version)) 1485 $version = $version[1];1485 $version = trim($version[1]); 1486 1486 else 1487 1487 $version = ''; 1488 1488 1489 $description = wptexturize( $description[1]);1489 $description = wptexturize(trim($description[1])); 1490 1490 1491 1491 $name = $plugin_name[1]; … … 1493 1493 $plugin = $name; 1494 1494 if ('' != $plugin_uri[1] && '' != $name) { 1495 $plugin = '<a href="' .$plugin_uri[1].'" title="'.__('Visit plugin homepage').'">'.$plugin.'</a>';1495 $plugin = '<a href="' . trim($plugin_uri[1]) . '" title="'.__('Visit plugin homepage').'">'.$plugin.'</a>'; 1496 1496 } 1497 1497 1498 1498 if ('' == $author_uri[1]) { 1499 $author = $author_name[1];1500 } else { 1501 $author = '<a href="' .$author_uri[1].'" title="'.__('Visit author homepage').'">'.$author_name[1].'</a>';1499 $author = trim($author_name[1]); 1500 } else { 1501 $author = '<a href="' . trim($author_uri[1]) . '" title="'.__('Visit author homepage').'">' . trim($author_name[1]) . '</a>'; 1502 1502 } 1503 1503 branches/2.0/wp-includes/functions.php
r4010 r4036 1742 1742 preg_match("|Template:(.*)|i", $theme_data, $template); 1743 1743 if ( preg_match("|Version:(.*)|i", $theme_data, $version) ) 1744 $version = $version[1];1744 $version = trim($version[1]); 1745 1745 else 1746 1746 $version =''; 1747 1747 if ( preg_match("|Status:(.*)|i", $theme_data, $status) ) 1748 $status = $status[1];1748 $status = trim($status[1]); 1749 1749 else 1750 $status = 'publish';1751 1752 $description = wptexturize( $description[1]);1750 $status = 'publish'; 1751 1752 $description = wptexturize(trim($description[1])); 1753 1753 1754 1754 $name = $theme_name[1]; … … 1757 1757 1758 1758 if ( '' == $author_uri[1] ) { 1759 $author = $author_name[1];1760 } else { 1761 $author = '<a href="' . $author_uri[1] . '" title="' . __('Visit author homepage') . '">' . $author_name[1]. '</a>';1759 $author = trim($author_name[1]); 1760 } else { 1761 $author = '<a href="' . trim($author_uri[1]) . '" title="' . __('Visit author homepage') . '">' . trim($author_name[1]) . '</a>'; 1762 1762 } 1763 1763
