Skip to content

Commit

Permalink
Revert more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Jan 23, 2024
1 parent 3243e7f commit a4e188b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ export default function useSyncPathWithURL() {
} else if (
// These sidebar paths are special in the sense that the url in these pages may or may not have a postId and we need to retain it if it has.
// The "type" property should be kept as well.
( navigatorLocation.path === '/page' &&
window?.__experimentalAdminViews ) ||
( navigatorLocation.path === '/wp_template' &&
window?.__experimentalAdminViews ) ||
( navigatorLocation.path === '/wp_template/all' &&
Expand Down
1 change: 0 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 @@ -15,7 +15,6 @@ export default function getIsListPage(
) {
return (
[ '/wp_template/all', '/wp_template_part/all' ].includes( path ) ||
( path === '/page' && window?.__experimentalAdminViews ) ||
( 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 a4e188b

Please sign in to comment.