Skip to content

Commit

Permalink
Revert changes made to getIsListPage() function
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Apr 26, 2024
1 parent 584d157 commit 5eb3d61
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/edit-site/src/utils/get-is-list-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5eb3d61

Please sign in to comment.