equal
deleted
inserted
replaced
29 * of avoiding cases where the current directory is a nested installation, e.g. / is WordPress(a) |
29 * of avoiding cases where the current directory is a nested installation, e.g. / is WordPress(a) |
30 * and /blog/ is WordPress(b). |
30 * and /blog/ is WordPress(b). |
31 * |
31 * |
32 * If neither set of conditions is true, initiate loading the setup process. |
32 * If neither set of conditions is true, initiate loading the setup process. |
33 */ |
33 */ |
34 if ( file_exists( ABSPATH . 'wp-config.php') ) { |
34 if ( file_exists( ABSPATH . 'wp-config.php' ) ) { |
35 |
35 |
36 /** The config file resides in ABSPATH */ |
36 /** The config file resides in ABSPATH */ |
37 require_once( ABSPATH . 'wp-config.php' ); |
37 require_once( ABSPATH . 'wp-config.php' ); |
38 |
38 |
39 } elseif ( @file_exists( dirname( ABSPATH ) . '/wp-config.php' ) && ! @file_exists( dirname( ABSPATH ) . '/wp-settings.php' ) ) { |
39 } elseif ( @file_exists( dirname( ABSPATH ) . '/wp-config.php' ) && ! @file_exists( dirname( ABSPATH ) . '/wp-settings.php' ) ) { |
70 |
70 |
71 wp_check_php_mysql_versions(); |
71 wp_check_php_mysql_versions(); |
72 wp_load_translations_early(); |
72 wp_load_translations_early(); |
73 |
73 |
74 // Die with an error message |
74 // Die with an error message |
75 $die = sprintf( |
75 $die = sprintf( |
76 /* translators: %s: wp-config.php */ |
76 /* translators: %s: wp-config.php */ |
77 __( "There doesn't seem to be a %s file. I need this before we can get started." ), |
77 __( "There doesn't seem to be a %s file. I need this before we can get started." ), |
78 '<code>wp-config.php</code>' |
78 '<code>wp-config.php</code>' |
79 ) . '</p>'; |
79 ) . '</p>'; |
80 $die .= '<p>' . sprintf( |
80 $die .= '<p>' . sprintf( |
85 $die .= '<p>' . sprintf( |
85 $die .= '<p>' . sprintf( |
86 /* translators: %s: wp-config.php */ |
86 /* translators: %s: wp-config.php */ |
87 __( "You can create a %s file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file." ), |
87 __( "You can create a %s file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file." ), |
88 '<code>wp-config.php</code>' |
88 '<code>wp-config.php</code>' |
89 ) . '</p>'; |
89 ) . '</p>'; |
90 $die .= '<p><a href="' . $path . '" class="button button-large">' . __( "Create a Configuration File" ) . '</a>'; |
90 $die .= '<p><a href="' . $path . '" class="button button-large">' . __( 'Create a Configuration File' ) . '</a>'; |
91 |
91 |
92 wp_die( $die, __( 'WordPress › Error' ) ); |
92 wp_die( $die, __( 'WordPress › Error' ) ); |
93 } |
93 } |