mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
now that we have a new pingback server in wp-admin/xmlrpc.php, let's advertise it
git-svn-id: https://develop.svn.wordpress.org/trunk@1677 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+2
-2
@@ -108,14 +108,14 @@ if (1 == $tb) {
|
||||
if (is_404()) {
|
||||
header("HTTP/1.x 404 Not Found");
|
||||
} else if ( !isset($doing_rss) || !$doing_rss ) {
|
||||
@header ('X-Pingback: '. get_settings('siteurl') . '/xmlrpc.php');
|
||||
@header ('X-Pingback: '. get_settings('siteurl') . '/wp-admin/xmlrpc.php');
|
||||
} else {
|
||||
// We're showing a feed, so WP is indeed the only thing that last changed
|
||||
$wp_last_modified = mysql2date('D, d M Y H:i:s', get_lastpostmodified('GMT'), 0).' GMT';
|
||||
$wp_etag = '"' . md5($wp_last_modified) . '"';
|
||||
@header('Last-Modified: '.$wp_last_modified);
|
||||
@header('ETag: '.$wp_etag);
|
||||
@header ('X-Pingback: ' . get_settings('siteurl') . '/xmlrpc.php');
|
||||
@header ('X-Pingback: ' . get_settings('siteurl') . '/wp-admin/xmlrpc.php');
|
||||
|
||||
// Support for Conditional GET
|
||||
if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) $client_last_modified = $_SERVER['HTTP_IF_MODIFIED_SINCE'];
|
||||
|
||||
Reference in New Issue
Block a user