From 75ca24955880b006ae1d657e603ef287fe5b3939 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 23 Sep 2019 23:17:58 +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. Built from https://develop.svn.wordpress.org/trunk@46283 git-svn-id: http://core.svn.wordpress.org/trunk@46095 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/upgrade.php | 4 ++-- wp-content/themes/twentytwenty/footer.php | 10 +++++----- wp-content/themes/twentytwenty/functions.php | 4 ++-- wp-content/themes/twentytwenty/inc/starter-content.php | 4 ++-- wp-includes/version.php | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php index 5be2754c20..e1a8794a6c 100644 --- a/wp-admin/includes/upgrade.php +++ b/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/wp-content/themes/twentytwenty/footer.php b/wp-content/themes/twentytwenty/footer.php index e0c27e5c29..614a278ea4 100644 --- a/wp-content/themes/twentytwenty/footer.php +++ b/wp-content/themes/twentytwenty/footer.php @@ -89,24 +89,24 @@ - +