WordPress.org

Make WordPress Core

Ticket #16176: 16176.4.patch

File 16176.4.patch, 1.6 KB (added by ocean90, 8 months ago)

Updated inline docs

  • src/wp-includes/post.php

     
    26162616 * @uses $user_ID 
    26172617 * @uses do_action() Calls 'pre_post_update' on post ID if this is an update. 
    26182618 * @uses do_action() Calls 'edit_post' action on post ID and post data if this is an update. 
    2619  * @uses do_action() Calls 'save_post' and 'wp_insert_post' on post id and post data just before returning. 
     2619 * @uses do_action() Calls 'save_post', 'save_post_{$post->post_type}' and 'wp_insert_post' on post id and post data just before returning. 
    26202620 * @uses apply_filters() Calls 'wp_insert_post_data' passing $data, $postarr prior to database update or insert. 
    26212621 * @uses wp_transition_post_status() 
    26222622 * 
     
    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; 
     
    29482949 * 
    29492950 * @since 2.1.0 
    29502951 * @uses $wpdb 
    2951  * @uses do_action() Calls 'edit_post', 'save_post', and 'wp_insert_post' on post_id and post data. 
     2952 * @uses do_action() Calls 'edit_post', 'save_post', 'save_post_{$post->post_type}' and 'wp_insert_post' on post_id and post data. 
    29522953 * 
    29532954 * @param int|object $post Post ID or object. 
    29542955 */ 
     
    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