Use PHP 7.4 for WooCommerce Blocks' `wp-env` Config (#51075)
This resolves a PHP 7.4 compatibility problem as well as updates the `wp-env` config for the Blocks tests to use 7.4 rather than the latest.
This commit is contained in:
parent
c656fdc59b
commit
caf9ec635e
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"core": null,
|
"core": null,
|
||||||
|
"phpVersion": "7.4",
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"https://github.com/WP-API/Basic-Auth/archive/master.zip",
|
"https://github.com/WP-API/Basic-Auth/archive/master.zip",
|
||||||
"https://downloads.wordpress.org/plugin/wordpress-importer.0.8.zip",
|
"https://downloads.wordpress.org/plugin/wordpress-importer.0.8.zip",
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: tweak
|
||||||
|
Comment: Just a change to the dev environment config.
|
||||||
|
|
|
@ -304,8 +304,9 @@ class ProductCollection extends AbstractBlock {
|
||||||
$p->set_attribute(
|
$p->set_attribute(
|
||||||
'data-wc-context',
|
'data-wc-context',
|
||||||
wp_json_encode(
|
wp_json_encode(
|
||||||
|
array_merge(
|
||||||
|
$current_context,
|
||||||
array(
|
array(
|
||||||
...$current_context,
|
|
||||||
// The message to be announced by the screen reader when the page is loading or loaded.
|
// The message to be announced by the screen reader when the page is loading or loaded.
|
||||||
'accessibilityLoadingMessage' => __( 'Loading page, please wait.', 'woocommerce' ),
|
'accessibilityLoadingMessage' => __( 'Loading page, please wait.', 'woocommerce' ),
|
||||||
'accessibilityLoadedMessage' => __( 'Page Loaded.', 'woocommerce' ),
|
'accessibilityLoadedMessage' => __( 'Page Loaded.', 'woocommerce' ),
|
||||||
|
@ -313,6 +314,7 @@ class ProductCollection extends AbstractBlock {
|
||||||
// This way we avoid prefetching when the page loads.
|
// This way we avoid prefetching when the page loads.
|
||||||
'isPrefetchNextOrPreviousLink' => false,
|
'isPrefetchNextOrPreviousLink' => false,
|
||||||
),
|
),
|
||||||
|
),
|
||||||
JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP
|
JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue