File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 ,
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments