diff --git a/wp-admin/includes/ajax-actions.php b/wp-admin/includes/ajax-actions.php index f24925c6af..5353a8ca05 100644 --- a/wp-admin/includes/ajax-actions.php +++ b/wp-admin/includes/ajax-actions.php @@ -3149,12 +3149,15 @@ function wp_ajax_save_attachment() { * Fires after an attachment has been updated via the Ajax handler * and before the JSON response is sent. * + * When checking if an action is being done, `doing_action( 'wp_ajax_save-attachment' )` + * may be used if that is more convenient. + * * @since 6.2.0 * * @param array $post The attachment data. * @param array $changes An array containing the updated attachment attributes. */ - do_action( 'wp_ajax_save_attachment', $post, $changes ); + do_action( 'wp_ajax_save_attachment_updated', $post, $changes ); } wp_send_json_success(); diff --git a/wp-includes/version.php b/wp-includes/version.php index d618bbab91..6ded7f4dbd 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-beta3-55449'; +$wp_version = '6.2-beta3-55450'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.