diff --git a/packages/edit-site/src/components/post-list/index.js b/packages/edit-site/src/components/post-list/index.js
index 4985af3050bd8..c777e5d4ff94b 100644
--- a/packages/edit-site/src/components/post-list/index.js
+++ b/packages/edit-site/src/components/post-list/index.js
@@ -406,8 +406,7 @@ export default function PostList( { postType } ) {
defaultLayouts={ defaultLayouts }
header={
window.__experimentalQuickEditDataViews &&
- view.type !== LAYOUT_LIST &&
- postType === 'page' && (
+ view.type !== LAYOUT_LIST && (
;
+}
+
export default function useActiveRoute() {
const { params = {} } = useLocation();
- const { postType, layout, canvas } = params;
+ const { postType, layout, canvas, quickEdit } = params;
const labels = useSelect(
( select ) => {
return select( coreStore ).getPostType( postType )?.labels;
@@ -28,7 +34,7 @@ export default function useActiveRoute() {
);
// Posts list.
- if ( [ 'post' ].includes( postType ) ) {
+ if ( postType ) {
const isListLayout = layout === 'list' || ! layout;
return {
name: 'posts-list',
@@ -50,6 +56,7 @@ export default function useActiveRoute() {
) : (
),
+ edit: quickEdit && ,
},
widths: {
content: isListLayout ? 380 : undefined,
diff --git a/packages/edit-site/src/components/sync-state-with-url/use-init-edited-entity-from-url.js b/packages/edit-site/src/components/sync-state-with-url/use-init-edited-entity-from-url.js
index 2dbd143766e67..05b130ebde4ba 100644
--- a/packages/edit-site/src/components/sync-state-with-url/use-init-edited-entity-from-url.js
+++ b/packages/edit-site/src/components/sync-state-with-url/use-init-edited-entity-from-url.js
@@ -28,8 +28,6 @@ const postTypesWithoutParentTemplate = [
PATTERN_TYPES.user,
];
-const authorizedPostTypes = [ 'page', 'post' ];
-
function useResolveEditedEntityAndContext( { postId, postType } ) {
const { hasLoadedAllDependencies, homepageId, postsPageId } = useSelect(
( select ) => {
@@ -181,11 +179,7 @@ function useResolveEditedEntityAndContext( { postId, postType } ) {
// If we're rendering a specific page, we need to resolve its template.
// The site editor only supports pages for now, not other CPTs.
- if (
- postType &&
- postId &&
- authorizedPostTypes.includes( postType )
- ) {
+ if ( postType && postId ) {
return resolveTemplateForPostTypeAndId( postType, postId );
}
@@ -205,7 +199,7 @@ function useResolveEditedEntityAndContext( { postId, postType } ) {
return {};
}
- if ( postType && postId && authorizedPostTypes.includes( postType ) ) {
+ if ( postType && postId ) {
return { postType, postId };
}
// TODO: for post types lists we should probably not render the front page, but maybe a placeholder