Skip to content

Commit

Permalink
Merge pull request #2157 from woocommerce/PCP-2829-wrong-return-url-o…
Browse files Browse the repository at this point in the history
…n-multisite-subsite

Fix the wrong return url in multisite setup (2829)
  • Loading branch information
Dinamiko authored Apr 18, 2024
2 parents 8d3c1cc + 80b5abd commit bc35b6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function current_context(
$payment_preference = $this->settings->has( 'payee_preferred' ) && $this->settings->get( 'payee_preferred' ) ?
ApplicationContext::PAYMENT_METHOD_IMMEDIATE_PAYMENT_REQUIRED : ApplicationContext::PAYMENT_METHOD_UNRESTRICTED;
$context = new ApplicationContext(
network_home_url( \WC_AJAX::get_endpoint( ReturnUrlEndpoint::ENDPOINT ) ),
home_url( \WC_AJAX::get_endpoint( ReturnUrlEndpoint::ENDPOINT ) ),
(string) wc_get_checkout_url(),
(string) $brand_name,
$locale,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function testCurrentContext(
->andReturn($value);
}

expect('network_home_url')
expect('home_url')
->andReturn('https://example.com/');
expect('wc_get_checkout_url')
->andReturn('https://example.com/checkout/');
Expand Down

0 comments on commit bc35b6f

Please sign in to comment.