From fcdca0ec362d00c1b9e87415196dca5ed1ad737b Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 20 Feb 2008 16:46:44 +0000 Subject: [PATCH] pre_post_update action from tellyworth. fixes #5815 git-svn-id: https://develop.svn.wordpress.org/trunk@6938 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/post.php b/wp-includes/post.php index f302374d18..4953ce6710 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -1250,6 +1250,7 @@ function wp_insert_post($postarr = array()) { $where = array( 'ID' => $post_ID ); if ($update) { + do_action( 'pre_post_update', $post_ID ); $wpdb->update( $wpdb->posts, $data, $where ); } else { $data['post_mime_type'] = stripslashes( $post_mime_type ); // This isn't in the update