Skip to content

Commit 4516575

Browse files
author
Paul Dechov
committed
Merge remote-tracking branch 'origin/release/6.3.0' into trunk
2 parents fb399a9 + af0825b commit 4516575

File tree

78 files changed

+24078
-13823
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+24078
-13823
lines changed

.github/workflows/compatibility.yml

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,47 @@
1-
name: Compatibility (WC, WP, PHP)
1+
name: PHP tests
22

33
on:
44
pull_request
55

66
jobs:
7-
# a dedicated job, as allowed to fail
8-
compatibility-woocommerce-beta:
9-
name: Beta
7+
beta-compatibility:
108
runs-on: ubuntu-18.04
119
strategy:
1210
fail-fast: false
1311
matrix:
1412
woocommerce: [ 'beta' ]
1513
wordpress: [ 'latest' ]
16-
php: [ '7.1', '8.0' ]
14+
php: [ '7.0', '7.4', '8.0' ]
15+
16+
17+
name: Beta (PHP=${{ matrix.php }}, WP=${{ matrix.wordpress }}, WC=${{ matrix.woocommerce }})
1718
env:
18-
WP_VERSION: ${{ matrix.wordpress }}
19-
WC_VERSION: ${{ matrix.woocommerce }}
19+
PHP_VERSION: ${{ matrix.php }}
20+
WP_VERSION: ${{ matrix.wordpress }}
21+
WC_VERSION: ${{ matrix.woocommerce }}
2022
steps:
21-
# clone the repository
22-
- uses: actions/checkout@v2
23-
# enable dependencies caching
24-
- uses: actions/cache@v2
23+
- name: Testing with PHP=${{ matrix.php }}, WP=${{ matrix.wordpress }}, WC=${{ matrix.woocommerce }}
24+
uses: actions/checkout@v2
25+
26+
- name: Set up dependencies caching
27+
uses: actions/cache@v2
2528
with:
2629
path: ~/.cache/composer/
2730
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
28-
# setup PHP, but without debug extensions for reasonable performance
29-
- uses: shivammathur/setup-php@v2
31+
32+
- name: Set up PHP
33+
uses: shivammathur/setup-php@v2
3034
with:
3135
php-version: ${{ matrix.php }}
32-
tools: composer
3336
coverage: none
34-
# run CI checks
35-
- run: bash bin/run-ci-tests.bash
37+
38+
- name: If PHP 7.0, set up PHPUnit 6.5 for legacy compatibility
39+
if: ${{ matrix.php == '7.0' }}
40+
run: wget https://phar.phpunit.de/phpunit-6.5.14.phar && mv phpunit-6.5.14.phar phpunit.phar
41+
42+
- name: If PHP 8.0, set up PHPUnit 9.5 for compatibility
43+
if: ${{ matrix.php == '8.0' }}
44+
run: wget https://phar.phpunit.de/phpunit-9.5.13.phar && mv phpunit-9.5.13.phar phpunit.phar
45+
46+
- name: Run CI checks
47+
run: bash bin/run-ci-tests.bash

.github/workflows/php-tests.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ jobs:
1616
include:
1717
# WooCommerce
1818
- woocommerce_support_policy: L
19-
woocommerce: 'latest'
19+
woocommerce: '6.2.0'
2020
- woocommerce_support_policy: L-1
21-
woocommerce: '5.8.0'
21+
woocommerce: '6.1.0'
2222
- woocommerce_support_policy: L-2
23-
woocommerce: '5.7.1'
23+
woocommerce: '6.0.0'
2424
# WordPress
2525
- wordpress_support_policy: L
26-
wordpress: 'latest'
26+
wordpress: '5.9'
2727
- wordpress_support_policy: L-1
28-
wordpress: '5.7'
28+
wordpress: '5.8'
2929
- wordpress_support_policy: L-2
30-
wordpress: '5.6'
30+
wordpress: '5.7'
3131
# PHP
3232
- php_support_policy: L
3333
php: '8.0'
@@ -61,5 +61,9 @@ jobs:
6161
if: ${{ matrix.php == '7.0' }}
6262
run: wget https://phar.phpunit.de/phpunit-6.5.14.phar && mv phpunit-6.5.14.phar phpunit.phar
6363

64+
- name: If PHP 8.0 and WP 5.9, set up PHPUnit 9.5 for compatibility
65+
if: ${{ matrix.php == '8.0' && matrix.wordpress >= '5.9' }}
66+
run: wget https://phar.phpunit.de/phpunit-9.5.13.phar && mv phpunit-9.5.13.phar phpunit.phar
67+
6468
- name: Run CI checks
6569
run: bash bin/run-ci-tests.bash

changelog.txt

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

3+
= 6.3.0 - 2022-03-10 =
4+
* Tweak - Remove html from translatable strings.
5+
* Tweak - Revert the deprecation of the 'wc_stripe_hide_payment_request_on_product_page', 'wc_stripe_show_payment_request_on_checkout', and 'wc_stripe_show_payment_request_on_cart' filters.
6+
* Tweak - Address minor styling issues in settings.
7+
38
= 6.2.0 - 2022-02-17 =
49
* Add - Add onboarding payment gateway setup methods.
510
* Fix - Enable Stripe payment method after connecting account.

client/components/confirmation-modal/style.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
}
2525

2626
.components-modal__header {
27-
margin: 0 -#{$grid-unit-30} $grid-unit-30;
2827
padding: 0 $grid-unit-30;
2928
@media ( max-width: 599px ) {
3029
button {

client/settings/account-details/index.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,17 @@ const WebhooksSection = () => {
8282
</div>
8383
<div className="account-details__desc">
8484
<WebhookInformation />
85-
<br />
86-
<br />
87-
{ message }{ ' ' }
88-
<Button
89-
disabled={ requestStatus === 'pending' }
90-
onClick={ refreshMessage }
91-
isBusy={ requestStatus === 'pending' }
92-
isLink
93-
>
94-
{ __( 'Refresh', 'woocommerce-gateway-stripe' ) }
95-
</Button>
85+
<p>
86+
{ message }{ ' ' }
87+
<Button
88+
disabled={ requestStatus === 'pending' }
89+
onClick={ refreshMessage }
90+
isBusy={ requestStatus === 'pending' }
91+
isLink
92+
>
93+
{ __( 'Refresh', 'woocommerce-gateway-stripe' ) }
94+
</Button>
95+
</p>
9696
</div>
9797
</>
9898
);

client/settings/payment-settings/account-keys-modal.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ const StyledConfirmationModal = styled( ConfirmationModal )`
167167
margin: 0 -24px 24px;
168168
}
169169
.wcstripe-inline-notice {
170+
margin-top: -24px;
170171
margin-bottom: 0;
171172
}
172173
.wcstripe-confirmation-modal__separator {

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"require-dev": {
1616
"composer/installers": "1.9.0",
1717
"phpunit/phpunit": "7.5.20",
18-
"yoast/phpunit-polyfills": "1.0.2",
18+
"yoast/phpunit-polyfills": "^1.0",
1919
"woocommerce/woocommerce-sniffs": "0.1.0",
2020
"wp-cli/wp-cli-bundle": "2.5.0"
2121
},

composer.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

includes/abstracts/abstract-wc-stripe-payment-gateway-voucher.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,13 @@ abstract class WC_Stripe_Payment_Gateway_Voucher extends WC_Stripe_Payment_Gatew
104104
* @since 5.8.0
105105
*/
106106
public function __construct() {
107-
/* translators: link */
108-
$this->method_description = sprintf( __( 'All other general Stripe settings can be adjusted <a href="%s">here</a>.', 'woocommerce-gateway-stripe' ), admin_url( 'admin.php?page=wc-settings&tab=checkout&section=stripe' ) );
109-
$this->supports = [
107+
$this->method_description = sprintf(
108+
/* translators: 1) HTML anchor open tag 2) HTML anchor closing tag */
109+
__( 'All other general Stripe settings can be adjusted %1$shere%2$s ', 'woocommerce-gateway-stripe' ),
110+
'<a href="' . esc_url( admin_url( 'admin.php?page=wc-settings&tab=checkout&section=stripe' ) ) . '">',
111+
'</a>'
112+
);
113+
$this->supports = [
110114
'products',
111115
];
112116

includes/admin/class-wc-rest-stripe-settings-controller.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,6 @@ private function update_is_upe_enabled( WP_REST_Request $request ) {
525525

526526
$settings = get_option( 'woocommerce_stripe_settings', [] );
527527
$settings[ WC_Stripe_Feature_Flags::UPE_CHECKOUT_FEATURE_ATTRIBUTE_NAME ] = $is_upe_enabled ? 'yes' : 'disabled';
528-
529528
update_option( 'woocommerce_stripe_settings', $settings );
530529

531530
// including the class again because otherwise it's not present.

0 commit comments

Comments
 (0)