Changeset 47856 for trunk/src/wp-includes/post.php
- Timestamp:
- 05/26/2020 02:47:26 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r47851 r47856 5718 5718 * 5719 5719 * @since 2.0.0 5720 * 5721 * @param int $post_id Attachment ID. 5720 * @since 5.5.0 Added the `$post` parameter. 5721 * 5722 * @param int $post_id Attachment ID. 5723 * @param WP_Post $post Post object. 5722 5724 */ 5723 do_action( 'delete_attachment', $post_id );5725 do_action( 'delete_attachment', $post_id, $post ); 5724 5726 5725 5727 wp_delete_object_term_relationships( $post_id, array( 'category', 'post_tag' ) ); … … 5744 5746 5745 5747 /** This action is documented in wp-includes/post.php */ 5746 do_action( 'delete_post', $post_id );5748 do_action( 'delete_post', $post_id, $post ); 5747 5749 $result = $wpdb->delete( $wpdb->posts, array( 'ID' => $post_id ) ); 5748 5750 if ( ! $result ) { … … 5750 5752 } 5751 5753 /** This action is documented in wp-includes/post.php */ 5752 do_action( 'deleted_post', $post_id );5754 do_action( 'deleted_post', $post_id, $post ); 5753 5755 5754 5756 wp_delete_attachment_files( $post_id, $meta, $backup_sizes, $file );
Note: See TracChangeset
for help on using the changeset viewer.