Changeset 13232
- Timestamp:
- 02/19/2010 08:56:16 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/setup-config.php
r13163 r13232 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; … … 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> … … 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 ( ( is_ssl() ? 'https://' : '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 187 $secret_keys = wp_remote_get( 'https://api.wordpress.org/secret-key/1.1/salt/' ); 188 if ( is_wp_error( $secret_keys ) ) { 192 193 if ( $no_api || is_wp_error( $secret_keys ) ) { 189 194 $secret_keys = array(); 190 195 require_once( ABSPATH . WPINC . '/pluggable.php' );
Note: See TracChangeset
for help on using the changeset viewer.