Skip to content

Commit 9f33005

Browse files
authored
[upgrader] Fixed the post-upgrade processing handling. (#781)
1 parent 30965dd commit 9f33005

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/class-fs-plugin-updater.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ function pre_set_site_transient_update_plugins_filter( $transient_data ) {
542542

543543
global $wp_current_filter;
544544

545-
if ( ! empty( $wp_current_filter ) && 'upgrader_process_complete' === $wp_current_filter[0] ) {
545+
if ( ! empty( $wp_current_filter ) && in_array( 'upgrader_process_complete', $wp_current_filter ) ) {
546546
return $transient_data;
547547
}
548548

0 commit comments

Comments
 (0)