WordPress.org

Make WordPress Core

Ticket #16176: 16176.patch

File 16176.patch, 613 bytes (added by SergeyBiryukov, 3 years ago)
  • wp-includes/post.php

     
    26422642        } 
    26432643 
    26442644        do_action('save_post', $post_ID, $post); 
     2645        do_action('save_post_' . $post->post_type, $post_ID, $post); 
    26452646        do_action('wp_insert_post', $post_ID, $post); 
    26462647 
    26472648        return $post_ID; 
     
    27342735 
    27352736        do_action('edit_post', $post_id, $post); 
    27362737        do_action('save_post', $post_id, $post); 
     2738        do_action('save_post_' . $post->post_type, $post_id, $post); 
    27372739        do_action('wp_insert_post', $post_id, $post); 
    27382740} 
    27392741