auto-patch 673-dev-dev01-2024-05-25T22_41_57
This commit is contained in:
@@ -2710,3 +2710,17 @@ function wc_update_890_update_paypal_standard_load_eligibility() {
|
||||
$paypal->update_option( '_should_load', wc_bool_to_string( false ) );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create the woocommerce_history_of_autoinstalled_plugins option if it doesn't exist
|
||||
* as a copy of woocommerce_autoinstalled_plugins if it exists.
|
||||
*/
|
||||
function wc_update_891_create_plugin_autoinstall_history_option() {
|
||||
$autoinstalled_plugins_history_info = get_site_option( 'woocommerce_history_of_autoinstalled_plugins' );
|
||||
if ( false === $autoinstalled_plugins_history_info ) {
|
||||
$autoinstalled_plugins_info = get_site_option( 'woocommerce_autoinstalled_plugins' );
|
||||
if ( false !== $autoinstalled_plugins_info ) {
|
||||
update_site_option( 'woocommerce_history_of_autoinstalled_plugins', $autoinstalled_plugins_info );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user