Changeset 47582
- Timestamp:
- 04/14/2020 07:24:49 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r47557 r47582 2997 2997 * 2998 2998 * @since 3.2.0 2999 * @since 5.5.0 Added the `$post` parameter. 2999 3000 * 3000 3001 * @see wp_delete_post() 3001 3002 * 3002 * @param int $postid Post ID. 3003 * @param int $postid Post ID. 3004 * @param WP_Post $post Post object. 3003 3005 */ 3004 do_action( 'before_delete_post', $postid );3006 do_action( 'before_delete_post', $postid, $post ); 3005 3007 3006 3008 delete_post_meta( $postid, '_wp_trash_meta_status' ); … … 3049 3051 * 3050 3052 * @since 1.2.0 3051 * 3052 * @param int $postid Post ID. 3053 * @since 5.5.0 Added the `$post` parameter. 3054 * 3055 * @param int $postid Post ID. 3056 * @param WP_Post $post Post object. 3053 3057 */ 3054 do_action( 'delete_post', $postid );3058 do_action( 'delete_post', $postid, $post ); 3055 3059 $result = $wpdb->delete( $wpdb->posts, array( 'ID' => $postid ) ); 3056 3060 if ( ! $result ) { … … 3062 3066 * 3063 3067 * @since 2.2.0 3064 * 3065 * @param int $postid Post ID. 3068 * @since 5.5.0 Added the `$post` parameter. 3069 * 3070 * @param int $postid Post ID. 3071 * @param WP_Post $post Post object. 3066 3072 */ 3067 do_action( 'deleted_post', $postid );3073 do_action( 'deleted_post', $postid, $post ); 3068 3074 3069 3075 clean_post_cache( $post ); … … 3081 3087 * 3082 3088 * @since 3.2.0 3089 * @since 5.5.0 Added the `$post` parameter. 3083 3090 * 3084 3091 * @see wp_delete_post() 3085 3092 * 3086 * @param int $postid Post ID. 3093 * @param int $postid Post ID. 3094 * @param WP_Post $post Post object. 3087 3095 */ 3088 do_action( 'after_delete_post', $postid );3096 do_action( 'after_delete_post', $postid, $post ); 3089 3097 3090 3098 return $post;
Note: See TracChangeset
for help on using the changeset viewer.