auto-patch 673-dev-dev01-2024-05-25T22_41_57
This commit is contained in:
@@ -155,6 +155,12 @@ class PluginInstaller implements RegisterHooksInterface {
|
||||
$auto_installed_plugins[ $plugin_name ] = $plugin_data;
|
||||
update_site_option( 'woocommerce_autoinstalled_plugins', $auto_installed_plugins );
|
||||
|
||||
$auto_installed_plugins_history = get_site_option( 'woocommerce_history_of_autoinstalled_plugins', array() );
|
||||
if ( ! isset( $auto_installed_plugins_history[ $plugin_name ] ) ) {
|
||||
$auto_installed_plugins_history[ $plugin_name ] = $plugin_data;
|
||||
update_site_option( 'woocommerce_history_of_autoinstalled_plugins', $auto_installed_plugins_history );
|
||||
}
|
||||
|
||||
$post_install = function () use ( $plugin_name, $plugin_version, $installed_by, $plugin_url, $plugin_data ) {
|
||||
$log_context = array(
|
||||
'source' => 'plugin_auto_installs',
|
||||
|
||||
Reference in New Issue
Block a user