now that we have a new pingback server in wp-admin/xmlrpc.php, let's advertise it

git-svn-id: http://svn.automattic.com/wordpress/trunk@1677 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
michelvaldrighi 2004-09-17 09:27:04 +00:00
parent 226cf46cb2
commit 5fd7490c9f
2 changed files with 3 additions and 3 deletions

View File

@ -108,14 +108,14 @@ if (1 == $tb) {
if (is_404()) { if (is_404()) {
header("HTTP/1.x 404 Not Found"); header("HTTP/1.x 404 Not Found");
} else if ( !isset($doing_rss) || !$doing_rss ) { } 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 { } else {
// We're showing a feed, so WP is indeed the only thing that last changed // 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_last_modified = mysql2date('D, d M Y H:i:s', get_lastpostmodified('GMT'), 0).' GMT';
$wp_etag = '"' . md5($wp_last_modified) . '"'; $wp_etag = '"' . md5($wp_last_modified) . '"';
@header('Last-Modified: '.$wp_last_modified); @header('Last-Modified: '.$wp_last_modified);
@header('ETag: '.$wp_etag); @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 // Support for Conditional GET
if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) $client_last_modified = $_SERVER['HTTP_IF_MODIFIED_SINCE']; if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) $client_last_modified = $_SERVER['HTTP_IF_MODIFIED_SINCE'];

View File

@ -75,7 +75,7 @@ function get_bloginfo($show='') {
$output = get_feed_link('comments_rss2'); $output = get_feed_link('comments_rss2');
break; break;
case 'pingback_url': case 'pingback_url':
$output = get_settings('siteurl') .'/xmlrpc.php'; $output = get_settings('siteurl') .'/wp-admin/xmlrpc.php';
break; break;
case 'stylesheet_url': case 'stylesheet_url':
$output = get_settings('stylesheet');; $output = get_settings('stylesheet');;