trackback_response [ WordPress Function ]
trackback_response ( $error = 0, $error_message = '' )
| Parameters: |
|
| Defined at: |
|
trackback_response() - Respond with error or success XML message
Source
<?php
function trackback_response($error = 0, $error_message = '') {
header('Content-Type: text/xml; charset=' . get_option('blog_charset') );
if ($error) {
echo '<?xml version="1.0" encoding="utf-8"?'.">\n";
echo "<response>\n";
echo "<error>1</error>\n";
echo "<message>$error_message</message>\n";
echo "</response>";
die();
} else {
echo '<?xml version="1.0" encoding="utf-8"?'.">\n";
echo "<response>\n";
echo "<error>0</error>\n";
echo "</response>";
}
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- /wp-trackback.php source - PHP Cross Reference (PHPXRef) of ...
Jun 1, 2011 ... wp-load.php'); 10 wp( array( 'tb' => '1' ) ); 11 } 12 13 /** 14 * trackback_response() - Respond with error or success XML message 15 * 16 ...
xref.yoast.com - wp-trackback.php - Detail view - PHP Cross Reference (PHPXRef ...
Jun 1, 2011 ... trackback_response() - Respond with error or success XML message param: int| bool $error Whether there was an error param: string ...
xref.yoast.com - <?php /** * Handle Trackbacks and Pingbacks sent to WordPress ...
wp-load.php'); wp( array( 'tb' => '1' ) ); } /** * trackback_response() - Respond with error or success XML message * * @param int|bool $error Whether there was ...
core.svn.wordpress.org - Internet-Draft Trackback - LifeWiki.net
Whether the Ping was successfully processed or not, the entity payload of the HTTP response MUST include a TrackBack response document as specified ...
www.lifewiki.net