status_header [ WordPress Function ]
status_header ( $header )
| Parameters: |
|
| Uses: | |
| Returns: |
|
| Defined at: |
|
Benzer Fonksiyonlar: get_status_header_desc, get_header, get_custom_header, display_header, do_activate_header
Set HTTP status header.
Source
<?php
function status_header( $header ) {
$text = get_status_header_desc( $header );
if ( empty( $text ) )
return false;
$protocol = $_SERVER["SERVER_PROTOCOL"];
if ( 'HTTP/1.1' != $protocol && 'HTTP/1.0' != $protocol )
$protocol = 'HTTP/1.0';
$status_header = "$protocol $header $text";
if ( function_exists( 'apply_filters' ) )
$status_header = apply_filters( 'status_header', $status_header, $header, $text, $protocol );
return @header( $status_header, true, $header );
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/status header « WordPress Codex
Function Reference/status header ... Set HTTP status header. ... Uses: apply_filters() Calls 'status_header' on status header string, HTTP HTTP code, HTTP code ...
codex.wordpress.org - WordPress › Support » status_header(500) problem with IE6
I noticed that if i try to post an incomplete (eg. with missing e-mail) comment using IE6, i get a "HTTP 500" error page. With other browsers (IE7, Firefox, Opera), ...
wordpress.org - status_header Wordpress hook details -- Adam Brown, BYU Political ...
Detailed information about every action hook and filter used in WordPress. Makes Plugin API easier to use. Lists appearance, file location, and deprecation data ...
adambrown.info - status_header (WordPress Function) - WPSeek.com
WordPress lookup for status_header, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com
Kullanýcý Tartýþmalarý [ wordpress.org ]
- wrk on "404 header breaks loading 404 template"
- wrk on "404 header breaks loading 404 template"
- wrk on "404 header breaks loading 404 template"
- Glenn Ansley on "status_header(500) problem with IE6"
- eliemartin on "status_header(500) problem with IE6"
- leonl on "status_header(500) problem with IE6"
- archon810 on "status_header(500) problem with IE6"
- rickm124 on "status_header(500) problem with IE6"
- rarsenault on "status_header(500) problem with IE6"
- Patrizio81 on "status_header(500) problem with IE6"