Ticket #12159: 12159.4.diff
File 12159.4.diff, 2.4 KB (added by , 15 years ago) |
---|
-
setup-config.php
109 109 <p><strong>If for any reason this automatic file creation doesn't work, don't worry. All this does is fill in the database information to a configuration file. You may also simply open <code>wp-config-sample.php</code> in a text editor, fill in your information, and save it as <code>wp-config.php</code>. </strong></p> 110 110 <p>In all likelihood, these items were supplied to you by your Web Host. If you do not have this information, then you will need to contact them before you can continue. If you’re all ready…</p> 111 111 112 <p class="step"><a href="setup-config.php?step=1 " class="button">Let’s go!</a></p>112 <p class="step"><a href="setup-config.php?step=1<?php if ( isset( $_GET['noapi'] ) ) echo '&noapi'; ?>" class="button">Let’s go!</a></p> 113 113 <?php 114 114 break; 115 115 … … 145 145 <td>If you want to run multiple WordPress installations in a single database, change this.</td> 146 146 </tr> 147 147 </table> 148 <?php if ( isset( $_GET['noapi'] ) ) { ?><input name="noapi" type="hidden" value="true" /><?php } ?> 148 149 <p class="step"><input name="submit" type="submit" value="Submit" class="button" /></p> 149 150 </form> 150 151 <?php … … 173 174 if ( !empty($wpdb->error) ) 174 175 wp_die($wpdb->error->get_error_message()); 175 176 177 // Fetch or generate keys and salts. 178 $no_api = isset( $_POST['noapi'] ); 176 179 require_once( ABSPATH . WPINC . '/plugin.php' ); 177 require_once( ABSPATH . WPINC . '/http.php' ); 178 wp_fix_server_vars(); 179 /**#@+ 180 * @ignore 181 */ 182 function get_bloginfo() { 183 return 'http://' . $_SERVER['HTTP_HOST'] . str_replace( $_SERVER['PHP_SELF'], '/wp-admin/setup-config.php', '' ); 180 if ( ! $no_api ) { 181 require_once( ABSPATH . WPINC . '/http.php' ); 182 wp_fix_server_vars(); 183 /**#@+ 184 * @ignore 185 */ 186 function get_bloginfo() { 187 return 'http://' . $_SERVER['HTTP_HOST'] . str_replace( $_SERVER['PHP_SELF'], '/wp-admin/setup-config.php', '' ); 188 } 189 /**#@-*/ 190 $secret_keys = wp_remote_get( 'https://api.wordpress.org/secret-key/1.1/salt/' ); 184 191 } 185 /**#@-*/186 192 187 $secret_keys = wp_remote_get( 'https://api.wordpress.org/secret-key/1.1/salt/' ); 188 if ( is_wp_error( $secret_keys ) ) { 193 if ( $no_api || is_wp_error( $secret_keys ) ) { 189 194 $secret_keys = array(); 190 195 require_once( ABSPATH . WPINC . '/pluggable.php' ); 191 196 for ( $i = 0; $i < 8; $i++ )