Changeset 34914
- Timestamp:
- 10/07/2015 09:25:54 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r34912 r34914 982 982 * 983 983 * @since 2.0.0 984 * @since 4.4.0 Added the `$description` parameter. 984 985 * 985 986 * @see get_status_header_desc() 986 987 * 987 * @param int $code HTTP status code. 988 */ 989 function status_header( $code ) { 990 $description = get_status_header_desc( $code ); 991 992 if ( empty( $description ) ) 988 * @param int $code HTTP status code. 989 * @param string $description Optional. A custom description for the HTTP status. 990 */ 991 function status_header( $code, $description = '' ) { 992 if ( ! $description ) { 993 $description = get_status_header_desc( $code ); 994 } 995 996 if ( empty( $description ) ) { 993 997 return; 998 } 994 999 995 1000 $protocol = wp_get_server_protocol();
Note: See TracChangeset
for help on using the changeset viewer.