diff --git a/wp-admin/includes/ajax-actions.php b/wp-admin/includes/ajax-actions.php index 995433eaba..2fd1662800 100644 --- a/wp-admin/includes/ajax-actions.php +++ b/wp-admin/includes/ajax-actions.php @@ -3144,6 +3144,17 @@ function wp_ajax_save_attachment() { wp_delete_post( $id ); } else { wp_update_post( $post ); + + /** + * Fires after an attachment has been updated and before + * the JSON response is sent. + * + * @since 6.2.0 + * + * @param array $post The attachment. + * @param array $changes An array of changes. + */ + do_action( 'wp_ajax_save_attachment', $post, $changes ); } wp_send_json_success(); diff --git a/wp-includes/version.php b/wp-includes/version.php index 404a90a6df..6394ccd6ab 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-alpha-55105'; +$wp_version = '6.2-alpha-55106'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.