From 197d99a589f23c735be0543a7476759764fea076 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 23 Sep 2019 23:16:59 +0000 Subject: [PATCH] Twenty Twenty: Rename widget areas to `sidebar-1` and `sidebar-2`. This ensures that widgets are mapped correctly and is consistent with the previous default themes. See https://github.com/WordPress/twentytwenty/issues/481. Reverts [46282]. Props ocean90, garrett-eclipse, desrosj, SergeyBiryukov. See #48110. git-svn-id: https://develop.svn.wordpress.org/trunk@46283 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/upgrade.php | 4 ++-- src/wp-content/themes/twentytwenty/footer.php | 10 +++++----- src/wp-content/themes/twentytwenty/functions.php | 4 ++-- .../themes/twentytwenty/inc/starter-content.php | 4 ++-- tests/phpunit/tests/customize/manager.php | 8 ++++---- tests/phpunit/tests/customize/widgets.php | 14 +++++++------- 6 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/wp-admin/includes/upgrade.php b/src/wp-admin/includes/upgrade.php index 5be2754c20..e1a8794a6c 100644 --- a/src/wp-admin/includes/upgrade.php +++ b/src/wp-admin/includes/upgrade.php @@ -446,12 +446,12 @@ Commenter avatars come from Gravatar.' 'sidebars_widgets', array( 'wp_inactive_widgets' => array(), - 'footer-one' => array( + 'sidebar-1' => array( 0 => 'search-2', 1 => 'recent-posts-2', 2 => 'recent-comments-2', ), - 'footer-two' => array( + 'sidebar-2' => array( 0 => 'archives-2', 1 => 'categories-2', 2 => 'meta-2', diff --git a/src/wp-content/themes/twentytwenty/footer.php b/src/wp-content/themes/twentytwenty/footer.php index e0c27e5c29..614a278ea4 100644 --- a/src/wp-content/themes/twentytwenty/footer.php +++ b/src/wp-content/themes/twentytwenty/footer.php @@ -89,24 +89,24 @@ - +