Skip to content

Commit 271a5ce

Browse files
committed
Disable _wp_sidebars_changed()
1 parent 0e9ea97 commit 271a5ce

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

features/language-core.feature

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,15 @@ Feature: Manage translation files for a WordPress install
316316
And I run `wp theme activate twentytwenty`
317317
And an empty cache
318318
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+
"""
319326

320-
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`
321328
Then STDOUT should contain:
322329
"""
323330
Downloading translation from https://downloads.wordpress.org/translation/core/5.4.1/de_DE.zip

0 commit comments

Comments
 (0)