WordPress.org

Make WordPress Core

Ticket #16176: 16176.3.patch

File 16176.3.patch, 685 bytes (added by ocean90, 20 months ago)

Refresh of .2 and with $update

  • src/wp-includes/post.php

     
    28792879        } 
    28802880 
    28812881        do_action( 'save_post', $post_ID, $post, $update ); 
     2882        do_action( "save_post_{$post->post_type}", $post_ID, $post, $update ); 
    28822883        do_action( 'wp_insert_post', $post_ID, $post, $update ); 
    28832884 
    28842885        return $post_ID; 
     
    29712972 
    29722973        do_action( 'edit_post', $post->ID, $post ); 
    29732974        do_action( 'save_post', $post->ID, $post, true ); 
     2975        do_action( "save_post_{$post->post_type}", $post_ID, $post, true ); 
    29742976        do_action( 'wp_insert_post', $post->ID, $post, true ); 
    29752977} 
    29762978