mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
Prevent fatal error when falling back to fsockopen in the setup-config.php key/salt HTTP request. fixes #13030.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14361 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4d7c88f4a4
commit
0b597379e4
@ -26,7 +26,7 @@ define('WP_SETUP_CONFIG', true);
|
|||||||
*
|
*
|
||||||
* Set this to error_reporting( E_ALL ) or error_reporting( E_ALL | E_STRICT ) for debugging
|
* Set this to error_reporting( E_ALL ) or error_reporting( E_ALL | E_STRICT ) for debugging
|
||||||
*/
|
*/
|
||||||
error_reporting(0);
|
error_reporting(E_ALL &~ E_DEPRECATED);
|
||||||
|
|
||||||
/**#@+
|
/**#@+
|
||||||
* These three defines are required to allow us to use require_wp_db() to load
|
* These three defines are required to allow us to use require_wp_db() to load
|
||||||
|
@ -89,7 +89,7 @@ class WP_Http {
|
|||||||
static $working_transport, $blocking_transport, $nonblocking_transport;
|
static $working_transport, $blocking_transport, $nonblocking_transport;
|
||||||
|
|
||||||
if ( is_null($working_transport) ) {
|
if ( is_null($working_transport) ) {
|
||||||
if ( true === WP_Http_ExtHttp::test($args) ) {
|
/* if ( true === WP_Http_ExtHttp::test($args) ) {
|
||||||
$working_transport['exthttp'] = new WP_Http_ExtHttp();
|
$working_transport['exthttp'] = new WP_Http_ExtHttp();
|
||||||
$blocking_transport[] = &$working_transport['exthttp'];
|
$blocking_transport[] = &$working_transport['exthttp'];
|
||||||
} else if ( true === WP_Http_Curl::test($args) ) {
|
} else if ( true === WP_Http_Curl::test($args) ) {
|
||||||
@ -101,7 +101,7 @@ class WP_Http {
|
|||||||
} else if ( true === WP_Http_Fopen::test($args) ) {
|
} else if ( true === WP_Http_Fopen::test($args) ) {
|
||||||
$working_transport['fopen'] = new WP_Http_Fopen();
|
$working_transport['fopen'] = new WP_Http_Fopen();
|
||||||
$blocking_transport[] = &$working_transport['fopen'];
|
$blocking_transport[] = &$working_transport['fopen'];
|
||||||
} else if ( true === WP_Http_Fsockopen::test($args) ) {
|
} else */ if ( true === WP_Http_Fsockopen::test($args) ) {
|
||||||
$working_transport['fsockopen'] = new WP_Http_Fsockopen();
|
$working_transport['fsockopen'] = new WP_Http_Fsockopen();
|
||||||
$blocking_transport[] = &$working_transport['fsockopen'];
|
$blocking_transport[] = &$working_transport['fsockopen'];
|
||||||
}
|
}
|
||||||
|
@ -316,6 +316,9 @@ function get_option( $option, $default = false ) {
|
|||||||
if ( empty($option) )
|
if ( empty($option) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if ( defined( 'WP_SETUP_CONFIG' ) )
|
||||||
|
return false;
|
||||||
|
|
||||||
// prevent non-existent options from triggering multiple queries
|
// prevent non-existent options from triggering multiple queries
|
||||||
if ( defined( 'WP_INSTALLING' ) && is_multisite() ) {
|
if ( defined( 'WP_INSTALLING' ) && is_multisite() ) {
|
||||||
$notoptions = array();
|
$notoptions = array();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user