Code Duplication    Length = 2-11 lines in 2 locations

src/wp-includes/class-http.php 1 location

@@ 719-729 (lines=11) @@
716
		$home = parse_url( get_option('siteurl') );
717
718
		// Don't block requests back to ourselves by default.
719
		if ( 'localhost' == $check['host'] || ( isset( $home['host'] ) && $home['host'] == $check['host'] ) ) {
720
			/**
721
			 * Filter whether to block local requests through the proxy.
722
			 *
723
			 * @since 2.8.0
724
			 *
725
			 * @param bool $block Whether to block local requests through proxy.
726
			 *                    Default false.
727
			 */
728
			return apply_filters( 'block_local_requests', false );
729
		}
730
731
		if ( !defined('WP_ACCESSIBLE_HOSTS') )
732
			return true;

src/wp-includes/class-wp-http-proxy.php 1 location

@@ 195-196 (lines=2) @@
192
		if ( ! is_null( $result ) )
193
			return $result;
194
195
		if ( 'localhost' == $check['host'] || ( isset( $home['host'] ) && $home['host'] == $check['host'] ) )
196
			return false;
197
198
		if ( !defined('WP_PROXY_BYPASS_HOSTS') )
199
			return true;