Skip to content

Commit

Permalink
[upgrader] Fixed the post-upgrade processing handling. (#781)
Browse files Browse the repository at this point in the history
  • Loading branch information
fajardoleo authored Jan 14, 2025
1 parent 30965dd commit 9f33005
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-fs-plugin-updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ function pre_set_site_transient_update_plugins_filter( $transient_data ) {

global $wp_current_filter;

if ( ! empty( $wp_current_filter ) && 'upgrader_process_complete' === $wp_current_filter[0] ) {
if ( ! empty( $wp_current_filter ) && in_array( 'upgrader_process_complete', $wp_current_filter ) ) {
return $transient_data;
}

Expand Down

0 comments on commit 9f33005

Please sign in to comment.