diff --git a/wp-admin/includes/ajax-actions.php b/wp-admin/includes/ajax-actions.php
index a5df77d..058847e 100644
a
|
b
|
function wp_ajax_update_plugin() { |
3095 | 3095 | $upgrader = new Plugin_Upgrader( $skin ); |
3096 | 3096 | $result = $upgrader->bulk_upgrade( array( $plugin ) ); |
3097 | 3097 | |
| 3098 | /** |
| 3099 | * Allow for manipulating $result for plugins with renamed destination. |
| 3100 | * |
| 3101 | * Plugin updates may require renaming of the destination because they may not |
| 3102 | * be hosted on dot org. If the destination has been changed it can be updated |
| 3103 | * from this filter. |
| 3104 | * |
| 3105 | * @since 4.4.x |
| 3106 | * |
| 3107 | * @param array $result Value from Plugin_Upgrader. |
| 3108 | */ |
| 3109 | $result = apply_filters( 'wp_ajax_update_plugin_result', $result ); |
| 3110 | |
3098 | 3111 | if ( is_array( $result ) && empty( $result[$plugin] ) && is_wp_error( $skin->result ) ) { |
3099 | 3112 | $result = $skin->result; |
3100 | 3113 | } |