Helper: Yoda condition in _http_request_host_is_external

This commit is contained in:
Konstantin Kovshenin 2017-04-26 18:33:17 +03:00
parent 5e892f9081
commit 2e55b3076d
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ class WC_Helper_API {
* @return bool True if the host is external, false if local/internal.
*/
public static function _http_request_host_is_external( $r, $host ) {
if ( defined( 'WP_DEBUG' ) && WP_DEBUG && $host === 'woocommerce.dev' ) {
if ( defined( 'WP_DEBUG' ) && WP_DEBUG && 'woocommerce.dev' === $host ) {
$r = true;
}