Changeset 4990 for trunk/wp-admin/upgrade-functions.php
- Timestamp:
- 03/07/2007 05:29:15 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/upgrade-functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/upgrade-functions.php
r4772 r4990 923 923 if ($oldfile == 'index.php') { // Check to make sure it's not a new index 924 924 $index = implode('', file("$oldpath/$oldfile")); 925 if ( strstr( $index, 'WP_USE_THEMES' )) {925 if (strpos($index, 'WP_USE_THEMES') !== false) { 926 926 if (! @copy(ABSPATH . 'wp-content/themes/default/index.php', "$site_dir/$newfile")) 927 927 return false; … … 995 995 996 996 foreach ($stylelines as $line) { 997 if (str str($line, "Theme Name:")) $line = "Theme Name: $theme_name";998 elseif (str str($line, "Theme URI:")) $line = "Theme URI: " . __get_option('siteurl');999 elseif (str str($line, "Description:")) $line = "Description: Your theme";1000 elseif (str str($line, "Version:")) $line = "Version: 1";1001 elseif (str str($line, "Author:")) $line = "Author: You";1002 fwrite($f, "{$line}\n");997 if (strpos($line, 'Theme Name:') !== false) $line = 'Theme Name: ' . $theme_name; 998 elseif (strpos($line, 'Theme URI:') !== false) $line = 'Theme URI: ' . __get_option('url'); 999 elseif (strpos($line, 'Description:') !== false) $line = 'Description: Your theme.'; 1000 elseif (strpos($line, 'Version:') !== false) $line = 'Version: 1'; 1001 elseif (strpos($line, 'Author:') !== false) $line = 'Author: You'; 1002 fwrite($f, $line . "\n"); 1003 1003 } 1004 1004 fclose($f);
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)