Docs: Further clarify the wp_ajax_save_attachment filter parameters description.

Follow-up to [55106].

See #23148.

git-svn-id: https://develop.svn.wordpress.org/trunk@55111 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2023-01-21 15:56:09 +00:00
parent 02a08585ae
commit 9822010bb8

View File

@ -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 );
}