auto-patch 673-dev-dev01-2024-05-25T22_41_57

This commit is contained in:
root
2024-05-25 22:41:57 +00:00
parent 5d6d82e226
commit a961f203c3
26 changed files with 1391 additions and 1619 deletions

View File

@@ -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',