From 5eb3d614e8ef86c592348fee65dec3741e632aae Mon Sep 17 00:00:00 2001 From: Tetsuaki Hamano Date: Fri, 26 Apr 2024 16:47:34 +0900 Subject: [PATCH] Revert changes made to `getIsListPage()` function --- packages/edit-site/src/utils/get-is-list-page.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/edit-site/src/utils/get-is-list-page.js b/packages/edit-site/src/utils/get-is-list-page.js index f7312ec3c1c29..0fa818c28cb51 100644 --- a/packages/edit-site/src/utils/get-is-list-page.js +++ b/packages/edit-site/src/utils/get-is-list-page.js @@ -14,7 +14,9 @@ export default function getIsListPage( isMobileViewport ) { return ( - [ '/wp_template', '/pages' ].includes( path ) || + [ '/wp_template', '/wp_template_part/all', '/pages' ].includes( + path + ) || ( path === '/patterns' && // Don't treat "/patterns" without categoryType and categoryId as a // list page in mobile because the sidebar covers the whole page.