Skip to content

Commit

Permalink
Fix upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
TorbenLundsgaard committed Sep 6, 2024
1 parent 0c90ef0 commit 5779dd8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Installation/Upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,13 @@ protected function v122_upgrade(): void {
*/
protected function v2_upgrade(): void {

if ( ! function_exists( 'get_plugins' ) ) {
require_once ABSPATH . 'wp-admin/includes/plugin.php';
}

if ( (
new WooCommerceConditional() )->is_met() &&
( is_plugin_active( 'yith-woocommerce-wishlist/init.php' ) || is_plugin_active( 'ti-woocommerce-wishlist/ti-woocommerce-wishlist.php' )
( \is_plugin_active( 'yith-woocommerce-wishlist/init.php' ) || \is_plugin_active( 'ti-woocommerce-wishlist/ti-woocommerce-wishlist.php' )
) ) {
$values = [
'misc' => [
Expand Down

0 comments on commit 5779dd8

Please sign in to comment.