From fc22c0304b3a7cd71d8259972fe4bb11170a59c3 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 21 Aug 2008 18:31:35 +0000 Subject: [PATCH] Rename wp_insert_post filter to wp_insert_post_data to avoid collision. see #5196 git-svn-id: https://develop.svn.wordpress.org/trunk@8702 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 844e3abd56..ee9362a4a9 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -1419,7 +1419,7 @@ function wp_insert_post($postarr = array(), $wp_error = false) { // expected_slashed (everything!) $data = compact( array( 'post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_content_filtered', 'post_title', 'post_excerpt', 'post_status', 'post_type', 'comment_status', 'ping_status', 'post_password', 'post_name', 'to_ping', 'pinged', 'post_modified', 'post_modified_gmt', 'post_parent', 'menu_order', 'guid' ) ); - $data = apply_filters('wp_insert_post', $data, $postarr); + $data = apply_filters('wp_insert_post_data', $data, $postarr); $data = stripslashes_deep( $data ); $where = array( 'ID' => $post_ID );