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();