mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-30 18:24:31 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user