From 98e476afc550e038c9c4737805e96041a6d3b6c1 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Wed, 12 May 2004 07:55:37 +0000 Subject: [PATCH] Possible fix to pingback problem. Parse error in blog-header. git-svn-id: https://develop.svn.wordpress.org/trunk@1265 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/post.php | 3 +++ wp-blog-header.php | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/wp-admin/post.php b/wp-admin/post.php index 5654763bbc..89c75e0f58 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -376,6 +376,9 @@ $now_gmt = current_time('mysql', 1); // are we going from draft/private to published? if ($prev_status != 'publish' && $post_status == 'publish') { generic_ping(); + if ($post_pingback) { + pingback($content, $post_ID); + } } // end if moving from draft/private to published if ($post_status == 'publish') { do_action('publish_post', $post_ID); diff --git a/wp-blog-header.php b/wp-blog-header.php index df9335c9ee..ac7c6f3f60 100644 --- a/wp-blog-header.php +++ b/wp-blog-header.php @@ -1,11 +1,11 @@ wp-config.php file. I need this before we can get started. Need more help? We got it. You can create a wp-config.php file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.")); -require_once($curpath . '/wp-config.php'); +require_once(dirname(__FILE__).'/' . '/wp-config.php'); // Process PATH_INFO, if set. $path_info = array();