Rename wp_insert_post filter to wp_insert_post_data to avoid collision. see #5196

git-svn-id: http://svn.automattic.com/wordpress/trunk@8702 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-08-21 18:31:35 +00:00
parent 203086a4de
commit 419db63a01
1 changed files with 1 additions and 1 deletions

View File

@ -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 );