Changes in trunk/wp-load.php [19297:20561]
- File:
-
- 1 edited
-
trunk/wp-load.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-load.php
r19297 r20561 19 19 */ 20 20 21 /** Define ABSPATH as this file s directory */21 /** Define ABSPATH as this file's directory */ 22 22 define( 'ABSPATH', dirname(__FILE__) . '/' ); 23 23 … … 31 31 } elseif ( file_exists( dirname(ABSPATH) . '/wp-config.php' ) && ! file_exists( dirname(ABSPATH) . '/wp-settings.php' ) ) { 32 32 33 /** The config file resides one level above ABSPATH but is not part of another install */33 /** The config file resides one level above ABSPATH but is not part of another install */ 34 34 require_once( dirname(ABSPATH) . '/wp-config.php' ); 35 35 … … 40 40 // Set a path for the link to the installer 41 41 if ( strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false ) 42 $path = ' ';42 $path = 'setup-config.php'; 43 43 else 44 $path = 'wp-admin/ ';44 $path = 'wp-admin/setup-config.php'; 45 45 46 require_once( ABSPATH . '/wp-includes/load.php' ); 47 require_once( ABSPATH . '/wp-includes/version.php' ); 46 define( 'WPINC', 'wp-includes' ); 48 47 define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); 48 require_once( ABSPATH . WPINC . '/load.php' ); 49 require_once( ABSPATH . WPINC . '/version.php' ); 50 51 wp_load_translations_early(); 49 52 wp_check_php_mysql_versions(); 50 53 51 54 // Die with an error message 52 require_once( ABSPATH . '/wp-includes/class-wp-error.php' ); 53 require_once( ABSPATH . '/wp-includes/functions.php' ); 54 require_once( ABSPATH . '/wp-includes/plugin.php' ); 55 $text_direction = /*WP_I18N_TEXT_DIRECTION*/'ltr'/*/WP_I18N_TEXT_DIRECTION*/; 56 wp_die(sprintf(/*WP_I18N_NO_CONFIG*/"<p>There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started.</p> <p>Need more help? <a href='http://codex.wordpress.org/Editing_wp-config.php'>We got it</a>.</p> <p>You can create a <code>wp-config.php</code> file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.</p><p><a href='%ssetup-config.php' class='button'>Create a Configuration File</a></p>"/*/WP_I18N_NO_CONFIG*/, $path), /*WP_I18N_ERROR_TITLE*/'WordPress › Error'/*/WP_I18N_ERROR_TITLE*/, array('text_direction' => $text_direction)); 55 $die = __( "There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started." ) . '</p>'; 56 $die .= '<p>' . __( "Need more help? <a href='http://codex.wordpress.org/Editing_wp-config.php'>We got it</a>." ) . '</p>'; 57 $die .= '<p>' . __( "You can create a <code>wp-config.php</code> file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file." ) . '</p>'; 58 $die .= '<p><a href="' . $path . '" class="button">' . __( "Create a Configuration File" ) . '</a>'; 57 59 60 wp_die( $die, __( 'WordPress › Error' ) ); 58 61 } 59 60 ?>
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)