Prevent fatal error when falling back to fsockopen in the setup-config.php key/salt HTTP request. fixes #13030.

git-svn-id: https://develop.svn.wordpress.org/trunk@14361 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2010-05-03 06:28:05 +00:00
parent d5e5ccdd72
commit 7ce20b12cf
3 changed files with 6 additions and 3 deletions
+3
View File
@@ -316,6 +316,9 @@ function get_option( $option, $default = false ) {
if ( empty($option) )
return false;
if ( defined( 'WP_SETUP_CONFIG' ) )
return false;
// prevent non-existent options from triggering multiple queries
if ( defined( 'WP_INSTALLING' ) && is_multisite() ) {
$notoptions = array();