WordPress.org

Make WordPress Core

Ticket #16176: post.php.diff

File post.php.diff, 595 bytes (added by bmb, 3 years ago)
  • wp-includes/post.php

     
    26192619 
    26202620        do_action('save_post', $post_ID, $post); 
    26212621        do_action('wp_insert_post', $post_ID, $post); 
     2622        do_action('save_post_' . $post->post_type, $post); 
    26222623 
    26232624        return $post_ID; 
    26242625} 
     
    27112712        do_action('edit_post', $post_id, $post); 
    27122713        do_action('save_post', $post_id, $post); 
    27132714        do_action('wp_insert_post', $post_id, $post); 
     2715        do_action('save_post_' . $post->post_type, $post); 
    27142716} 
    27152717 
    27162718/**