Make WordPress Core

Opened 22 months ago

#55089 assigned enhancement

ajax `wp_ajax_update_plugin` show download failed when contain another update (eg: translations) with same process fail.

Reported by: arrayiterator's profile arrayiterator Owned by:
Milestone: Awaiting Review Priority: normal
Severity: minor Version: 5.9
Component: Plugins Keywords: needs-testing reporter-feedback
Focuses: javascript, administration Cc:

Description

I found that wp_ajax_update_plugin contain invalid response when trying to update plugin via ajax request.

This happend when $upgrader->bulk_upgrade( array( $plugin ) ); called, and any other update progress run on same time.

Eg: there are translations update exists and when contain errors on translations update, the plugin update tell that the plugin fail to download, but the plugins successfully updated.

Attachments (3)

55089.patch (1022 bytes) - added by arrayiterator 22 months ago.
src/wp-admin/includes/ajax-actions.php
Screen Shot 2022-02-05 at 22.10.27.png (115.0 KB) - added by arrayiterator 22 months ago.
Response WP_Ajax_Upgrader_Skin
55089-tab-indentation.patch (907 bytes) - added by arrayiterator 22 months ago.
fix 55089.patch indentation

Download all attachments as: .zip

Change History (3)

@arrayiterator
22 months ago

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

@arrayiterator
22 months ago

Response WP_Ajax_Upgrader_Skin

@arrayiterator
22 months ago

fix 55089.patch indentation

Note: See TracTickets for help on using tickets.