Ticket #21472: status-header-custom-text.diff
File status-header-custom-text.diff, 699 bytes (added by , 12 years ago) |
---|
-
wp-includes/functions.php
868 868 * @param int $header HTTP status code 869 869 * @return unknown 870 870 */ 871 function status_header( $header ) { 872 $text = get_status_header_desc( $header ); 871 function status_header( $header, $text = null ) { 872 if ( !$text ) { 873 $text = get_status_header_desc( $header ); 874 if ( empty( $text ) ) 875 return false; 876 } 873 877 874 if ( empty( $text ) )875 return false;876 877 878 $protocol = $_SERVER["SERVER_PROTOCOL"]; 878 879 if ( 'HTTP/1.1' != $protocol && 'HTTP/1.0' != $protocol ) 879 880 $protocol = 'HTTP/1.0';