mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 15:31:42 +01:00
pre_post_update action from tellyworth. fixes #5815
git-svn-id: http://svn.automattic.com/wordpress/trunk@6938 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
297492cce5
commit
b09e83ddca
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user