Ticket #5815: pre_post_update_action-r6744.patch

File pre_post_update_action-r6744.patch, 481 bytes (added by tellyworth, 8 months ago)
  • wordpress/wp-includes/post.php

    old new  
    11411141        $where = array( 'ID' => $post_ID ); 
    11421142 
    11431143        if ($update) { 
     1144                do_action( 'pre_post_update', $post_ID ); 
    11441145                $wpdb->update( $wpdb->posts, $data, $where ); 
    11451146        } else { 
    11461147                $data['post_mime_type'] = stripslashes( $post_mime_type ); // This isn't in the update