Changeset 2757 for trunk/wp-includes/functions.php
- Timestamp:
- 08/07/2005 10:11:30 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r2740 r2757 1512 1512 $name = trim($name); 1513 1513 $theme = $name; 1514 if ('' != $theme_uri[1] && '' != $name) {1515 $theme = '<a href="' . $theme_uri[1] . '" title="' . __('Visit theme homepage') . '">' . $theme . '</a>';1516 }1517 1514 1518 1515 if ('' == $author_uri[1]) { … … 1570 1567 foreach($theme_files as $theme_file) { 1571 1568 $theme_data = get_theme_data("$theme_root/$theme_file"); 1572 1569 1573 1570 $name = $theme_data['Name']; 1574 1571 $title = $theme_data['Title']; … … 1578 1575 $template = $theme_data['Template']; 1579 1576 $stylesheet = dirname($theme_file); 1577 1578 $screenshot = glob("$theme_root/$stylesheet/screenshot.png"); 1579 if ( !empty( $screenshot ) ) 1580 $screenshot = basename( $screenshot[0] ); 1581 else 1582 $screenshot = false; 1580 1583 1581 1584 if (empty($name)) { … … 1641 1644 } 1642 1645 1643 $themes[$name] = array('Name' => $name, 'Title' => $title, 'Description' => $description, 'Author' => $author, 'Version' => $version, 'Template' => $template, 'Stylesheet' => $stylesheet, 'Template Files' => $template_files, 'Stylesheet Files' => $stylesheet_files, 'Template Dir' => $template_dir, 'Stylesheet Dir' => $stylesheet_dir, 'Status' => $theme_data['Status'] );1646 $themes[$name] = array('Name' => $name, 'Title' => $title, 'Description' => $description, 'Author' => $author, 'Version' => $version, 'Template' => $template, 'Stylesheet' => $stylesheet, 'Template Files' => $template_files, 'Stylesheet Files' => $stylesheet_files, 'Template Dir' => $template_dir, 'Stylesheet Dir' => $stylesheet_dir, 'Status' => $theme_data['Status'], 'Screenshot' => $screenshot); 1644 1647 } 1645 1648
Note:
See TracChangeset
for help on using the changeset viewer.