Skip to content

Commit

Permalink
Merge pull request #1260 from bluehost/fix/site-capability-transient-…
Browse files Browse the repository at this point in the history
…issue

Remove the site_capabilities filter
  • Loading branch information
circlecube authored Aug 16, 2024
2 parents a1acabb + 3a8dab9 commit 39ae621
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 27 deletions.
19 changes: 0 additions & 19 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
14 changes: 7 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 39ae621

Please sign in to comment.