Ticket #16176: 16176.5.patch
| File 16176.5.patch, 1.7 KB (added by , 12 years ago) |
|---|
-
src/wp-includes/post.php
2616 2616 * @uses $user_ID 2617 2617 * @uses do_action() Calls 'pre_post_update' on post ID if this is an update. 2618 2618 * @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_type}' and 'wp_insert_post' on post id and post data just before returning. 2620 2620 * @uses apply_filters() Calls 'wp_insert_post_data' passing $data, $postarr prior to database update or insert. 2621 2621 * @uses wp_transition_post_status() 2622 2622 * … … 2878 2878 do_action( 'post_updated', $post_ID, $post_after, $post_before); 2879 2879 } 2880 2880 2881 do_action( "save_post_{$post->post_type}", $post_ID, $post, $update ); 2881 2882 do_action( 'save_post', $post_ID, $post, $update ); 2882 2883 do_action( 'wp_insert_post', $post_ID, $post, $update ); 2883 2884 … … 2948 2949 * 2949 2950 * @since 2.1.0 2950 2951 * @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_type}' and 'wp_insert_post' on post_id and post data. 2952 2953 * 2953 2954 * @param int|object $post Post ID or object. 2954 2955 */ … … 2970 2971 wp_transition_post_status( 'publish', $old_status, $post ); 2971 2972 2972 2973 do_action( 'edit_post', $post->ID, $post ); 2974 do_action( "save_post_{$post->post_type}", $post_ID, $post, true ); 2973 2975 do_action( 'save_post', $post->ID, $post, true ); 2974 2976 do_action( 'wp_insert_post', $post->ID, $post, true ); 2975 2977 }