mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 15:17:42 +02:00
Site Health: In HTTP requests test, when checking whether the WP_HTTP_BLOCK_EXTERNAL
constant is defined, check its value as well.
Props chesio. Merges [45328] to the 5.2 branch. Fixes #47297. Built from https://develop.svn.wordpress.org/branches/5.2@45329 git-svn-id: http://core.svn.wordpress.org/branches/5.2@45140 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a32c70deb9
commit
056dae6ac5
@ -1577,7 +1577,7 @@ class WP_Site_Health {
|
|||||||
$blocked = false;
|
$blocked = false;
|
||||||
$hosts = array();
|
$hosts = array();
|
||||||
|
|
||||||
if ( defined( 'WP_HTTP_BLOCK_EXTERNAL' ) ) {
|
if ( defined( 'WP_HTTP_BLOCK_EXTERNAL' ) && WP_HTTP_BLOCK_EXTERNAL ) {
|
||||||
$blocked = true;
|
$blocked = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.2.1-alpha-45327';
|
$wp_version = '5.2.1-alpha-45329';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user