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
This commit is contained in:
parent
0aaaf5637f
commit
98e476afc5
|
@ -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);
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue