Don't ping when importing.
git-svn-id: https://develop.svn.wordpress.org/trunk@2865 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cfe42dc930
commit
97a7959a71
@ -74,7 +74,7 @@ if (isset($_GET['page'])) {
|
||||
|
||||
if (! file_exists(ABSPATH . "wp-admin/import/$importer.php"))
|
||||
die(__('Cannot load importer.'));
|
||||
|
||||
|
||||
include(ABSPATH . "wp-admin/import/$importer.php");
|
||||
|
||||
$parent_file = 'import.php';
|
||||
@ -85,6 +85,8 @@ if (isset($_GET['page'])) {
|
||||
|
||||
require_once(ABSPATH . 'wp-admin/upgrade-functions.php');
|
||||
|
||||
define('WP_IMPORTING', true);
|
||||
|
||||
call_user_func($wp_importers[$importer][2]);
|
||||
|
||||
include(ABSPATH . 'wp-admin/admin-footer.php');
|
||||
|
@ -154,7 +154,7 @@ function wp_insert_post($postarr = array()) {
|
||||
|
||||
if ($post_status == 'publish') {
|
||||
do_action('publish_post', $post_ID);
|
||||
if ($post_pingback)
|
||||
if ($post_pingback && !defined('WP_IMPORTING'))
|
||||
$result = $wpdb->query("
|
||||
INSERT INTO $wpdb->postmeta
|
||||
(post_id,meta_key,meta_value)
|
||||
|
Loading…
x
Reference in New Issue
Block a user