Skip to content

Commit 74790b4

Browse files
committed
Merge trunk v5.0.2 into develop
2 parents f312c02 + de8cdd7 commit 74790b4

File tree

7 files changed

+20
-17
lines changed

7 files changed

+20
-17
lines changed

changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
*** WooCommerce Payments Changelog ***
22

3+
= 5.0.2 - 2022-11-14 =
4+
* Fix - Fixed rest api error for payment_gateways endpoint
5+
36
= 5.0.1 - 2022-11-10 =
47
* Fix - Fix fatal error when non-admin access admin pages.
58

includes/class-wc-payment-gateway-wcpay.php

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2946,6 +2946,15 @@ public function append_stripelink_button( $field, $key, $args, $value ) {
29462946
return $field;
29472947
}
29482948

2949+
/**
2950+
* Returns the URL of the configuration screen for this gateway, for use in internal links.
2951+
*
2952+
* @return string URL of the configuration screen for this gateway
2953+
*/
2954+
public static function get_settings_url() {
2955+
return WC_Payments_Admin_Settings::get_settings_url();
2956+
}
2957+
29492958
// Start: Deprecated functions.
29502959

29512960
/**
@@ -2960,18 +2969,6 @@ public static function is_current_page_settings() {
29602969
return WC_Payments_Admin_Settings::is_current_page_settings();
29612970
}
29622971

2963-
/**
2964-
* Returns the URL of the configuration screen for this gateway, for use in internal links.
2965-
*
2966-
* @deprecated 5.0.0
2967-
*
2968-
* @return string URL of the configuration screen for this gateway
2969-
*/
2970-
public static function get_settings_url() {
2971-
wc_deprecated_function( __FUNCTION__, '5.0.0', 'WC_Payments_Admin_Settings::get_settings_url' );
2972-
return WC_Payments_Admin_Settings::get_settings_url();
2973-
}
2974-
29752972
/**
29762973
* Generates the configuration values, needed for payment fields.
29772974
*

includes/class-wc-payments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,11 +387,11 @@ public static function init() {
387387
WC_Payments_Explicit_Price_Formatter::init();
388388

389389
include_once WCPAY_ABSPATH . '/includes/class-wc-payments-captured-event-note.php';
390+
include_once WCPAY_ABSPATH . 'includes/admin/class-wc-payments-admin-settings.php';
390391

391392
// Add admin screens.
392393
if ( is_admin() ) {
393394
include_once WCPAY_ABSPATH . 'includes/admin/class-wc-payments-admin.php';
394-
include_once WCPAY_ABSPATH . 'includes/admin/class-wc-payments-admin-settings.php';
395395
}
396396

397397
if ( is_admin() && current_user_can( 'manage_woocommerce' ) ) {

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "woocommerce-payments",
3-
"version": "5.0.1",
3+
"version": "5.0.2",
44
"main": "webpack.config.js",
55
"author": "Automattic",
66
"license": "GPL-3.0-or-later",

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: payment gateway, payment, apple pay, credit card, google pay
44
Requires at least: 5.8
55
Tested up to: 6.0
66
Requires PHP: 7.0
7-
Stable tag: 5.0.1
7+
Stable tag: 5.0.2
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -98,6 +98,9 @@ Please note that our support for the checkout block is still experimental and th
9898

9999
== Changelog ==
100100

101+
= 5.0.2 - 2022-11-14 =
102+
* Fix - Fixed rest api error for payment_gateways endpoint
103+
101104
= 5.0.1 - 2022-11-10 =
102105
* Fix - Fix fatal error when non-admin access admin pages.
103106

woocommerce-payments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* WC tested up to: 7.0.0
1313
* Requires at least: 5.8
1414
* Requires PHP: 7.0
15-
* Version: 5.0.1
15+
* Version: 5.0.2
1616
*
1717
* @package WooCommerce\Payments
1818
*/

0 commit comments

Comments
 (0)