From 3db618fa32c193d24f75a9d1449aa613c9a956e6 Mon Sep 17 00:00:00 2001 From: arunshenoy99 Date: Fri, 16 Aug 2024 13:07:06 +0530 Subject: [PATCH 1/2] Remove the site_capabilities filter --- bootstrap.php | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/bootstrap.php b/bootstrap.php index a4470c102..f76b29e29 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -203,22 +203,3 @@ function () { // Instantiate the Features singleton Features::getInstance(); - -/** - * Temporary hook to filter the capabilities in case they are empty - * This is to fix an issue where the migration value is not found on new sites - * Temporary fix to keep things working while we determing the root cause - */ -add_filter( - 'transient_nfd_site_capabilities', - function ( $transient ) { - if ( empty( $transient ) ) { - return array( - 'canMigrateSite' => true, - ); - } - return $transient; - }, - 10, - 2 -); From 3a8dab912ade1edcaf1d76df89cfbc14c5c21371 Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Fri, 16 Aug 2024 10:39:41 -0400 Subject: [PATCH 2/2] update data module to include capability filter --- composer.json | 2 +- composer.lock | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/composer.json b/composer.json index 76c8b474f..3464e0ddf 100644 --- a/composer.json +++ b/composer.json @@ -76,7 +76,7 @@ "newfold-labs/wp-module-atomic": "^1.3.0", "newfold-labs/wp-module-coming-soon": "^1.2.5", "newfold-labs/wp-module-context": "^1.0.1", - "newfold-labs/wp-module-data": "^2.6.1", + "newfold-labs/wp-module-data": "^2.6.2", "newfold-labs/wp-module-deactivation": "^1.2.3", "newfold-labs/wp-module-ecommerce": "^1.3.40", "newfold-labs/wp-module-facebook": "^1.0.9", diff --git a/composer.lock b/composer.lock index b431c0397..f9bc4829b 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "ed08e03d608562850e8d0e852b172450", + "content-hash": "11c7f52792a412c64915f7fcfa8da604", "packages": [ { "name": "doctrine/inflector", @@ -504,16 +504,16 @@ }, { "name": "newfold-labs/wp-module-data", - "version": "2.6.1", + "version": "2.6.2", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-data.git", - "reference": "49dc91eec8053872354db9cddd355e45f2de49e4" + "reference": "91d1b03162f23b7b8bd3a41d9496eb8017df0051" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-data/zipball/49dc91eec8053872354db9cddd355e45f2de49e4", - "reference": "49dc91eec8053872354db9cddd355e45f2de49e4", + "url": "https://api.github.com/repos/newfold-labs/wp-module-data/zipball/91d1b03162f23b7b8bd3a41d9496eb8017df0051", + "reference": "91d1b03162f23b7b8bd3a41d9496eb8017df0051", "shasum": "" }, "require": { @@ -595,10 +595,10 @@ ], "description": "Newfold Data Module", "support": { - "source": "https://github.com/newfold-labs/wp-module-data/tree/2.6.1", + "source": "https://github.com/newfold-labs/wp-module-data/tree/2.6.2", "issues": "https://github.com/newfold-labs/wp-module-data/issues" }, - "time": "2024-07-25T16:37:25+00:00" + "time": "2024-08-16T14:18:26+00:00" }, { "name": "newfold-labs/wp-module-deactivation",