Changeset 4035
- Timestamp:
- 07/23/06 19:20:11 (2 years ago)
- Files:
-
- trunk/wp-admin/admin-functions.php (modified) (2 diffs)
- trunk/wp-includes/theme.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/admin-functions.php
r4017 r4035 1613 1613 preg_match("|Author URI:(.*)|i", $plugin_data, $author_uri); 1614 1614 if (preg_match("|Version:(.*)|i", $plugin_data, $version)) 1615 $version = $version[1];1615 $version = trim($version[1]); 1616 1616 else 1617 1617 $version = ''; 1618 1618 1619 $description = wptexturize( $description[1]);1619 $description = wptexturize(trim($description[1])); 1620 1620 1621 1621 $name = $plugin_name[1]; … … 1623 1623 $plugin = $name; 1624 1624 if ('' != $plugin_uri[1] && '' != $name) { 1625 $plugin = '<a href="' .$plugin_uri[1].'" title="'.__('Visit plugin homepage').'">'.$plugin.'</a>';1625 $plugin = '<a href="' . trim($plugin_uri[1]) . '" title="'.__('Visit plugin homepage').'">'.$plugin.'</a>'; 1626 1626 } 1627 1627 1628 1628 if ('' == $author_uri[1]) { 1629 $author = $author_name[1];1630 } else { 1631 $author = '<a href="' .$author_uri[1].'" title="'.__('Visit author homepage').'">'.$author_name[1].'</a>';1629 $author = trim($author_name[1]); 1630 } else { 1631 $author = '<a href="' . trim($author_uri[1]) . '" title="'.__('Visit author homepage').'">' . trim($author_name[1]) . '</a>'; 1632 1632 } 1633 1633 trunk/wp-includes/theme.php
r4024 r4035 51 51 preg_match("|Template:(.*)|i", $theme_data, $template); 52 52 if ( preg_match("|Version:(.*)|i", $theme_data, $version) ) 53 $version = $version[1];53 $version = trim($version[1]); 54 54 else 55 55 $version =''; 56 56 if ( preg_match("|Status:(.*)|i", $theme_data, $status) ) 57 $status = $status[1];58 else 59 $status = 'publish';60 61 $description = wptexturize( $description[1]);57 $status = trim($status[1]); 58 else 59 $status = 'publish'; 60 61 $description = wptexturize(trim($description[1])); 62 62 63 63 $name = $theme_name[1]; … … 66 66 67 67 if ( '' == $author_uri[1] ) { 68 $author = $author_name[1];68 $author = trim($author_name[1]); 69 69 } else { 70 $author = '<a href="' . $author_uri[1] . '" title="' . __('Visit author homepage') . '">' . $author_name[1]. '</a>';70 $author = '<a href="' . trim($author_uri[1]) . '" title="' . __('Visit author homepage') . '">' . trim($author_name[1]) . '</a>'; 71 71 } 72 72
