diff --git a/src/wp-admin/includes/ajax-actions.php b/src/wp-admin/includes/ajax-actions.php
index 995433eaba..2fd1662800 100644
|
a
|
b
|
function wp_ajax_save_attachment() { |
| 3144 | 3144 | wp_delete_post( $id ); |
| 3145 | 3145 | } else { |
| 3146 | 3146 | wp_update_post( $post ); |
| | 3147 | |
| | 3148 | /** |
| | 3149 | * Fires after an attachment has been updated and before |
| | 3150 | * the JSON response is sent. |
| | 3151 | * |
| | 3152 | * @since 6.2.0 |
| | 3153 | * |
| | 3154 | * @param array $post The attachment. |
| | 3155 | * @param array $changes An array of changes. |
| | 3156 | */ |
| | 3157 | do_action( 'wp_ajax_save_attachment', $post, $changes ); |
| 3147 | 3158 | } |
| 3148 | 3159 | |
| 3149 | 3160 | wp_send_json_success(); |