diff --git a/src/wp-admin/includes/ajax-actions.php b/src/wp-admin/includes/ajax-actions.php index 2fd1662800..35090e2288 100644 --- a/src/wp-admin/includes/ajax-actions.php +++ b/src/wp-admin/includes/ajax-actions.php @@ -3146,13 +3146,13 @@ function wp_ajax_save_attachment() { wp_update_post( $post ); /** - * Fires after an attachment has been updated and before - * the JSON response is sent. + * Fires after an attachment has been updated via the Ajax handler + * and before the JSON response is sent. * * @since 6.2.0 * - * @param array $post The attachment. - * @param array $changes An array of changes. + * @param array $post The attachment data. + * @param array $changes An array containing the updated attachment attributes. */ do_action( 'wp_ajax_save_attachment', $post, $changes ); }