diff --git wp-includes/functions.php wp-includes/functions.php
index 1e273b2..a613b09 100644
|
|
function get_status_header_desc( $code ) { |
985 | 985 | * @see get_status_header_desc() |
986 | 986 | * |
987 | 987 | * @param int $code HTTP status code. |
| 988 | * @param string $description The description for the HTTP status. |
988 | 989 | */ |
989 | | function status_header( $code ) { |
990 | | $description = get_status_header_desc( $code ); |
| 990 | function status_header( $code, $description = null ) { |
| 991 | if ( ! $description ) { |
| 992 | $description = get_status_header_desc( $code ); |
| 993 | } |
991 | 994 | |
992 | | if ( empty( $description ) ) |
| 995 | if ( empty( $description ) ) { |
993 | 996 | return; |
| 997 | } |
994 | 998 | |
995 | 999 | $protocol = wp_get_server_protocol(); |
996 | 1000 | $status_header = "$protocol $code $description"; |