Possible fix to pingback problem. Parse error in blog-header.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1265 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2004-05-12 07:55:37 +00:00
parent 24c36b764b
commit 9b8b403535
2 changed files with 6 additions and 3 deletions

View File

@ -376,6 +376,9 @@ $now_gmt = current_time('mysql', 1);
// are we going from draft/private to published? // are we going from draft/private to published?
if ($prev_status != 'publish' && $post_status == 'publish') { if ($prev_status != 'publish' && $post_status == 'publish') {
generic_ping(); generic_ping();
if ($post_pingback) {
pingback($content, $post_ID);
}
} // end if moving from draft/private to published } // end if moving from draft/private to published
if ($post_status == 'publish') { if ($post_status == 'publish') {
do_action('publish_post', $post_ID); do_action('publish_post', $post_ID);

View File

@ -1,11 +1,11 @@
<?php <?php
$curpath = dirname(__FILE__).'/'; require(dirname(__FILE__).'/' . 'wp-includes/wp-l10n.php');
if (!file_exists($curpath . '/wp-config.php')) if (!file_exists(dirname(__FILE__).'/' . 'wp-config.php'))
die(__("There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://wordpress.org/docs/faq/#wp-config'>We got it</a>. You can <a href='wp-admin/install-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file.")); die(__("There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://wordpress.org/docs/faq/#wp-config'>We got it</a>. You can <a href='wp-admin/install-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, 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. // Process PATH_INFO, if set.
$path_info = array(); $path_info = array();