Index: src/wp-includes/functions.php
===================================================================
--- src/wp-includes/functions.php	(revisão 37666)
+++ src/wp-includes/functions.php	(cópia de trabalho)
@@ -632,12 +632,9 @@
  * @since 1.5.1
  *
  * @param string $url        URL to retrieve HTTP headers from.
- * @param bool   $deprecated Not Used.
  * @return bool|string False on failure, headers on success.
  */
-function wp_get_http_headers( $url, $deprecated = false ) {
-	if ( !empty( $deprecated ) )
-		_deprecated_argument( __FUNCTION__, '2.7' );
+function wp_get_http_headers( $url) {
 
 	$response = wp_safe_remote_head( $url );
 
Index: tests/phpunit/tests/external-http/get_headers.php
===================================================================
--- tests/phpunit/tests/external-http/get_headers.php	(revisão 0)
+++ tests/phpunit/tests/external-http/get_headers.php	(cópia de trabalho)
@@ -0,0 +1,25 @@
+<?php
+/**
+ * @group external-http
+ */
+class Tests_External_HTTP_Get_Headers extends WP_UnitTestCase {
+
+	public function test_wp_get_http_headers_should_get_succeed() {
+
+		$url = 'https://wordpress.org/';
+		$http_headers = wp_get_http_headers( $url );
+
+		$this->assertInternalType( 'object', $http_headers );
+		$this->assertArrayHasKey( 'content-type', $http_headers );
+		$this->assertArrayHasKey( 'date', $http_headers );
+		$this->assertEquals( 'text/html; charset=utf-8', $http_headers['content-type'] );
+	}
+
+	public function test_wp_get_http_headers_should_fails() {
+
+		$url = 'this_is_not_a_valid_url';
+		$http_headers = wp_get_http_headers( $url );
+
+		$this->assertFalse( $http_headers, "This isn't a valid return for a non-valid url and should raise an error" );
+	}
+}
