Skip to content

Commit 9822010

Browse files
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
1 parent 02a0858 commit 9822010

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/wp-admin/includes/ajax-actions.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3146,13 +3146,13 @@ function wp_ajax_save_attachment() {
31463146
wp_update_post( $post );
31473147

31483148
/**
3149-
* Fires after an attachment has been updated and before
3150-
* the JSON response is sent.
3149+
* Fires after an attachment has been updated via the Ajax handler
3150+
* and before the JSON response is sent.
31513151
*
31523152
* @since 6.2.0
31533153
*
3154-
* @param array $post The attachment.
3155-
* @param array $changes An array of changes.
3154+
* @param array $post The attachment data.
3155+
* @param array $changes An array containing the updated attachment attributes.
31563156
*/
31573157
do_action( 'wp_ajax_save_attachment', $post, $changes );
31583158
}

0 commit comments

Comments
 (0)