WordPress.org

Make WordPress Core

Changes between Initial Version and Version 3 of Ticket #23915


Ignore:
Timestamp:
11/09/13 02:54:17 (19 months ago)
Author:
SergeyBiryukov
Comment:

Appears to be introduced in [9012]. Changed to use wp_remote_retrieve_header() in [17928].

According to the inline docs, wp_remote_retrieve_header() always returns a string: tags/3.7.1/src/wp-includes/http.php#L229

If it returns an array when multiple headers of the same name are set, it should be either fixed or noted in the docs.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23915

    • Property Cc tom@… added
    • Property Keywords needs-patch added
    • Property Version changed from 3.5.1 to 2.7
    • Property Milestone changed from Awaiting Review to 3.8
  • Ticket #23915 – Description

    initial v3  
    77I have no idea how to make pingbacks happen so to reproduce, add this line to functions.php: discover_pingback_server_uri('http://localhost:8080/'); 
    88 
    9 And in a terminal window run this (you may need to install the netcat-openbsd package in Debuntu): while true; do echo -en 'HTTP/1.1 200 OK\r\nContent-type: text/html\r\nContent-type: text/plain\r\n\r\n' | nc -lp 8080; done 
     9And in a terminal window run this (you may need to install the netcat-openbsd package in Debuntu): 
     10`while true; do echo -en 'HTTP/1.1 200 OK\r\nContent-type: text/html\r\nContent-type: text/plain\r\n\r\n' | nc -lp 8080; done` 
    1011 
    1112Then visit your WP installation and you shall get the aforementioned error message.