Skip to content

Commit 506ec26

Browse files
authored
Merge pull request #111 from wojsmol/fix/php81-compat
2 parents 39c8c52 + 271a5ce commit 506ec26

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"wp-cli/db-command": "^1.3 || ^2",
1919
"wp-cli/entity-command": "^1.3 || ^2",
2020
"wp-cli/extension-command": "^1.2 || ^2",
21-
"wp-cli/wp-cli-tests": "^3.0.11"
21+
"wp-cli/wp-cli-tests": "^3.1"
2222
},
2323
"config": {
2424
"process-timeout": 7200,

features/language-core.feature

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ Feature: Manage translation files for a WordPress install
300300
@require-wp-4.0
301301
Scenario: Ensure correct language is installed for WP version
302302
Given a WP install
303+
And I run `wp theme activate twentytwenty`
303304
And an empty cache
304305
And I run `wp core download --version=4.5.3 --force`
305306

@@ -312,10 +313,18 @@ Feature: Manage translation files for a WordPress install
312313
@require-wp-4.0
313314
Scenario: Ensure upgrader output is in English
314315
Given a WP install
316+
And I run `wp theme activate twentytwenty`
315317
And an empty cache
316318
And I run `wp core download --version=5.4.1 --force`
319+
And a disable_sidebar_check.php file:
320+
"""
321+
<?php
322+
WP_CLI::add_wp_hook( 'init', static function () {
323+
remove_action( 'after_switch_theme', '_wp_sidebars_changed' );
324+
} );
325+
"""
317326

318-
When I run `wp language core install de_DE --activate`
327+
When I run `wp language core install de_DE --activate --require=disable_sidebar_check.php`
319328
Then STDOUT should contain:
320329
"""
321330
Downloading translation from https://downloads.wordpress.org/translation/core/5.4.1/de_DE.zip

0 commit comments

Comments
 (0)