WordPress.org

Make WordPress Core

Ticket #24299: 24299.patch

File 24299.patch, 519 bytes (added by johnjamesjacoby, 2 years ago)
  • wp-includes/post.php

     
    28722872        } 
    28732873 
    28742874        do_action('save_post', $post_ID, $post); 
     2875        do_action('save_post_' . $post->post_type, $post_ID, $post); 
    28752876        do_action('wp_insert_post', $post_ID, $post); 
    28762877 
    28772878        return $post_ID; 
     
    29642965 
    29652966        do_action( 'edit_post', $post->ID, $post ); 
    29662967        do_action( 'save_post', $post->ID, $post ); 
     2968        do_action( 'save_post_' . $post->post_type, $post->ID, $post ); 
    29672969        do_action( 'wp_insert_post', $post->ID, $post ); 
    29682970} 
    29692971