Don't ping when importing.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2865 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
92a670361c
commit
333025ea54
|
@ -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…
Reference in New Issue