From 8ffb5e42dc78f449f6f2ed0a0900e9d587057437 Mon Sep 17 00:00:00 2001 From: Imran Hossain Date: Wed, 20 Nov 2024 15:15:56 +0600 Subject: [PATCH 1/2] Remove check for read flag from migration key get api checks --- ...est-api-v2-endpoint-site-migration-wpcom-migration-key.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/projects/packages/jetpack-mu-wpcom/src/features/wpcom-endpoints/class-wpcom-rest-api-v2-endpoint-site-migration-wpcom-migration-key.php b/projects/packages/jetpack-mu-wpcom/src/features/wpcom-endpoints/class-wpcom-rest-api-v2-endpoint-site-migration-wpcom-migration-key.php index 955e839d2da66..8ee40eaa04ce2 100644 --- a/projects/packages/jetpack-mu-wpcom/src/features/wpcom-endpoints/class-wpcom-rest-api-v2-endpoint-site-migration-wpcom-migration-key.php +++ b/projects/packages/jetpack-mu-wpcom/src/features/wpcom-endpoints/class-wpcom-rest-api-v2-endpoint-site-migration-wpcom-migration-key.php @@ -73,10 +73,6 @@ public function can_access() { return false; } - if ( 'read' === get_option( $this->key_is_read_option_name, false ) ) { - return false; - } - return true; } From acd888ffbe80f12366887a5441b157fad4e90e31 Mon Sep 17 00:00:00 2001 From: Imran Hossain Date: Wed, 20 Nov 2024 15:21:43 +0600 Subject: [PATCH 2/2] Changelog - Remove read check from migration key access checks --- .../changelog/fix-migration-diy-throws-403-on-page-reload | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 projects/packages/jetpack-mu-wpcom/changelog/fix-migration-diy-throws-403-on-page-reload diff --git a/projects/packages/jetpack-mu-wpcom/changelog/fix-migration-diy-throws-403-on-page-reload b/projects/packages/jetpack-mu-wpcom/changelog/fix-migration-diy-throws-403-on-page-reload new file mode 100644 index 0000000000000..f6c66cc0de6aa --- /dev/null +++ b/projects/packages/jetpack-mu-wpcom/changelog/fix-migration-diy-throws-403-on-page-reload @@ -0,0 +1,4 @@ +Significance: patch +Type: fixed + +Fix migration key fetch failing when DIY migration page is reloaded