Changeset 7999 for trunk/wp-admin/includes/upgrade.php
- Timestamp:
- 05/27/2008 05:55:24 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/upgrade.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/upgrade.php
r7936 r7999 1 1 <?php 2 2 3 if ( file_exists( ABSPATH . 'wp-content/install.php') )4 require ( ABSPATH . 'wp-content/install.php');3 if ( file_exists(WP_CONTENT_DIR . '/install.php') ) 4 require (WP_CONTENT_DIR . '/install.php'); 5 5 require_once(ABSPATH . 'wp-admin/includes/admin.php'); 6 6 require_once(ABSPATH . 'wp-admin/includes/schema.php'); … … 1087 1087 function make_site_theme_from_oldschool($theme_name, $template) { 1088 1088 $home_path = get_home_path(); 1089 $site_dir = ABSPATH . "wp-content/themes/$template";1089 $site_dir = WP_CONTENT_DIR . "/themes/$template"; 1090 1090 1091 1091 if (! file_exists("$home_path/index.php")) … … 1106 1106 $index = implode('', file("$oldpath/$oldfile")); 1107 1107 if (strpos($index, 'WP_USE_THEMES') !== false) { 1108 if (! @copy( ABSPATH . 'wp-content/themes/default/index.php', "$site_dir/$newfile"))1108 if (! @copy(WP_CONTENT_DIR . '/themes/default/index.php', "$site_dir/$newfile")) 1109 1109 return false; 1110 1110 continue; // Don't copy anything … … 1154 1154 1155 1155 function make_site_theme_from_default($theme_name, $template) { 1156 $site_dir = ABSPATH . "wp-content/themes/$template";1157 $default_dir = ABSPATH . 'wp-content/themes/default';1156 $site_dir = WP_CONTENT_DIR . "/themes/$template"; 1157 $default_dir = WP_CONTENT_DIR . '/themes/default'; 1158 1158 1159 1159 // Copy files from the default theme to the site theme. … … 1212 1212 $theme_name = __get_option('blogname'); 1213 1213 $template = sanitize_title($theme_name); 1214 $site_dir = ABSPATH . "wp-content/themes/$template";1214 $site_dir = WP_CONTENT_DIR . "/themes/$template"; 1215 1215 1216 1216 // If the theme already exists, nothing to do. … … 1220 1220 1221 1221 // We must be able to write to the themes dir. 1222 if (! is_writable( ABSPATH . "wp-content/themes")) {1222 if (! is_writable(WP_CONTENT_DIR . "/themes")) { 1223 1223 return false; 1224 1224 }
Note: See TracChangeset
for help on using the changeset viewer.