Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Site Editor: Allow all classic themes to access Patterns page #54066

Closed
wants to merge 2 commits into from

Conversation

t-hamano
Copy link
Contributor

@t-hamano t-hamano commented Aug 30, 2023

Part of #52150
Core ticket: https://core.trac.wordpress.org/ticket/58827

What?

This PR allows client-side access to the Patterns page for all non-block themes.

tt1-site-editor

Why?

Currently, only classic themes that support block-template-parts can use the Template Parts Editor in the Site Editor.

Starting with WordPress 6.3, all themes can create unsynced patterns. For non-block themes, the Patterns page in the Site Editor is not accessible, so users always need to use the WP-Admin style pattern editing UI.

However, I believe the Patterns page in the Site Editor is designed to be available regardless of the type of theme.

How?

This PR permits the following in the classic theme:

  • Allow access to the Patterns page via the Command Palette
  • On the Patterns page, do not display the "Manage all template parts" menu only for classic themes without block-template-parts support.
  • When the back button is pressed on a Template Part page, it takes the user to the Patterns page instead of the dashboard.

Testing Instructions

Preparation

If this change makes sense, I would like to propose the following changes in the core after this PR is merged:

  • For all classic themes, display the Patterns menu item in the Appearance menu, regardless of whether it supports block-template-parts or not (Do not show the Template Parts menu).
  • When a browser is reloaded or accessed from outside the Site Editor, allow access if the page is a permitted page in that theme.

For now, comment out the following to temporarily allow access:
https://github.com/WordPress/wordpress-develop/blob/54a177910a80083930ee1284f648c1db5bf2e5c0/src/wp-admin/site-editor.php#L22-L32

To test the hybrid theme, you may want to use the wp-env test environment that has Emptyhybrid theme (localhost:8889/wp-admin).

Block Theme

All operations are still possible and there should be no commands, pages, or UI that will be unavailable in this PR.

Hybrid Theme (Emptyhybrid)

  • Activate Twenty Twenty One theme.
  • Open the Post Editor.
  • Execute the "Patterns" action from the Command Palette.
  • The Site Editor's Patterns page should appear.
  • The 'Create template part' button should not appear in the drop-down.
  • Should be able to perform all operations related to the pattern.
  • Should be able to access the All template parts page.
  • Template parts should not be able to be created.
  • If you press the back button continuously, you should move in the order "All template parts", "Patterns", Dashboard.

Classic Theme (Twenty Twenty One)

  • Activate Twenty Twenty One theme.
  • Open the Post Editor.
  • Execute the "Patterns" action from the Command Palette.
  • The Site Editor's Patterns page should appear.
  • The 'Create template part' button should not appear in the drop-down.
  • The "Manage all template parts" button should not appear.
  • Should be able to perform all operations related to the pattern.
  • Pressing the back button should take you to the dashboard.

About Backward Compatibility

My concern is that unless the Patterns menu item is added to the core side and the classic theme has access to Patterns page, it will not work ideally.

Specifically, classic themes that support block-template-parts can access the Template Parts page from the template parts menu item in the admin panel. However, the pattern page cannot be accessed directly, and the back button must be pressed once from the template parts page.

So, if this feature is implemented in WP6.4, then the above inconsistency will occur until the minimum WordPress version supported by the Gutenberg plugin is raised to 6.4.

If you have a better approach to resolving this issue, please let me know.

@t-hamano t-hamano self-assigned this Aug 30, 2023
@t-hamano t-hamano added [Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") [Type] Enhancement A suggestion for improvement. labels Aug 30, 2023
@github-actions
Copy link

github-actions bot commented Aug 30, 2023

Size Change: -48 B (0%)

Total Size: 1.52 MB

Filename Size Change
build/core-commands/index.min.js 2.52 kB -81 B (-3%)
build/edit-site/index.min.js 91.8 kB +33 B (0%)
ℹ️ View Unchanged
Filename Size
build/a11y/index.min.js 955 B
build/annotations/index.min.js 2.69 kB
build/api-fetch/index.min.js 2.28 kB
build/autop/index.min.js 2.1 kB
build/blob/index.min.js 451 B
build/block-directory/index.min.js 7.01 kB
build/block-directory/style-rtl.css 1.02 kB
build/block-directory/style.css 1.02 kB
build/block-editor/content-rtl.css 4.25 kB
build/block-editor/content.css 4.24 kB
build/block-editor/default-editor-styles-rtl.css 381 B
build/block-editor/default-editor-styles.css 381 B
build/block-editor/index.min.js 216 kB
build/block-editor/style-rtl.css 15.1 kB
build/block-editor/style.css 15 kB
build/block-library/blocks/archives/editor-rtl.css 61 B
build/block-library/blocks/archives/editor.css 60 B
build/block-library/blocks/archives/style-rtl.css 90 B
build/block-library/blocks/archives/style.css 90 B
build/block-library/blocks/audio/editor-rtl.css 150 B
build/block-library/blocks/audio/editor.css 150 B
build/block-library/blocks/audio/style-rtl.css 122 B
build/block-library/blocks/audio/style.css 122 B
build/block-library/blocks/audio/theme-rtl.css 126 B
build/block-library/blocks/audio/theme.css 126 B
build/block-library/blocks/avatar/editor-rtl.css 116 B
build/block-library/blocks/avatar/editor.css 116 B
build/block-library/blocks/avatar/style-rtl.css 104 B
build/block-library/blocks/avatar/style.css 104 B
build/block-library/blocks/block/editor-rtl.css 305 B
build/block-library/blocks/block/editor.css 305 B
build/block-library/blocks/button/editor-rtl.css 584 B
build/block-library/blocks/button/editor.css 582 B
build/block-library/blocks/button/style-rtl.css 629 B
build/block-library/blocks/button/style.css 628 B
build/block-library/blocks/buttons/editor-rtl.css 337 B
build/block-library/blocks/buttons/editor.css 337 B
build/block-library/blocks/buttons/style-rtl.css 332 B
build/block-library/blocks/buttons/style.css 332 B
build/block-library/blocks/calendar/style-rtl.css 239 B
build/block-library/blocks/calendar/style.css 239 B
build/block-library/blocks/categories/editor-rtl.css 113 B
build/block-library/blocks/categories/editor.css 112 B
build/block-library/blocks/categories/style-rtl.css 124 B
build/block-library/blocks/categories/style.css 124 B
build/block-library/blocks/code/editor-rtl.css 53 B
build/block-library/blocks/code/editor.css 53 B
build/block-library/blocks/code/style-rtl.css 121 B
build/block-library/blocks/code/style.css 121 B
build/block-library/blocks/code/theme-rtl.css 124 B
build/block-library/blocks/code/theme.css 124 B
build/block-library/blocks/columns/editor-rtl.css 108 B
build/block-library/blocks/columns/editor.css 108 B
build/block-library/blocks/columns/style-rtl.css 421 B
build/block-library/blocks/columns/style.css 421 B
build/block-library/blocks/comment-author-avatar/editor-rtl.css 125 B
build/block-library/blocks/comment-author-avatar/editor.css 125 B
build/block-library/blocks/comment-content/style-rtl.css 92 B
build/block-library/blocks/comment-content/style.css 92 B
build/block-library/blocks/comment-template/style-rtl.css 199 B
build/block-library/blocks/comment-template/style.css 198 B
build/block-library/blocks/comments-pagination-numbers/editor-rtl.css 123 B
build/block-library/blocks/comments-pagination-numbers/editor.css 121 B
build/block-library/blocks/comments-pagination/editor-rtl.css 222 B
build/block-library/blocks/comments-pagination/editor.css 209 B
build/block-library/blocks/comments-pagination/style-rtl.css 235 B
build/block-library/blocks/comments-pagination/style.css 231 B
build/block-library/blocks/comments-title/editor-rtl.css 75 B
build/block-library/blocks/comments-title/editor.css 75 B
build/block-library/blocks/comments/editor-rtl.css 840 B
build/block-library/blocks/comments/editor.css 839 B
build/block-library/blocks/comments/style-rtl.css 637 B
build/block-library/blocks/comments/style.css 636 B
build/block-library/blocks/cover/editor-rtl.css 647 B
build/block-library/blocks/cover/editor.css 650 B
build/block-library/blocks/cover/style-rtl.css 1.69 kB
build/block-library/blocks/cover/style.css 1.68 kB
build/block-library/blocks/details/editor-rtl.css 65 B
build/block-library/blocks/details/editor.css 65 B
build/block-library/blocks/details/style-rtl.css 98 B
build/block-library/blocks/details/style.css 98 B
build/block-library/blocks/embed/editor-rtl.css 293 B
build/block-library/blocks/embed/editor.css 293 B
build/block-library/blocks/embed/style-rtl.css 410 B
build/block-library/blocks/embed/style.css 410 B
build/block-library/blocks/embed/theme-rtl.css 126 B
build/block-library/blocks/embed/theme.css 126 B
build/block-library/blocks/file/editor-rtl.css 316 B
build/block-library/blocks/file/editor.css 316 B
build/block-library/blocks/file/style-rtl.css 311 B
build/block-library/blocks/file/style.css 312 B
build/block-library/blocks/file/view.min.js 318 B
build/block-library/blocks/footnotes/style-rtl.css 201 B
build/block-library/blocks/footnotes/style.css 199 B
build/block-library/blocks/freeform/editor-rtl.css 2.61 kB
build/block-library/blocks/freeform/editor.css 2.61 kB
build/block-library/blocks/gallery/editor-rtl.css 947 B
build/block-library/blocks/gallery/editor.css 952 B
build/block-library/blocks/gallery/style-rtl.css 1.53 kB
build/block-library/blocks/gallery/style.css 1.53 kB
build/block-library/blocks/gallery/theme-rtl.css 108 B
build/block-library/blocks/gallery/theme.css 108 B
build/block-library/blocks/group/editor-rtl.css 654 B
build/block-library/blocks/group/editor.css 654 B
build/block-library/blocks/group/style-rtl.css 57 B
build/block-library/blocks/group/style.css 57 B
build/block-library/blocks/group/theme-rtl.css 78 B
build/block-library/blocks/group/theme.css 78 B
build/block-library/blocks/heading/style-rtl.css 76 B
build/block-library/blocks/heading/style.css 76 B
build/block-library/blocks/html/editor-rtl.css 336 B
build/block-library/blocks/html/editor.css 337 B
build/block-library/blocks/image/editor-rtl.css 834 B
build/block-library/blocks/image/editor.css 833 B
build/block-library/blocks/image/style-rtl.css 1.42 kB
build/block-library/blocks/image/style.css 1.41 kB
build/block-library/blocks/image/theme-rtl.css 126 B
build/block-library/blocks/image/theme.css 126 B
build/block-library/blocks/image/view-interactivity.min.js 1.83 kB
build/block-library/blocks/latest-comments/style-rtl.css 357 B
build/block-library/blocks/latest-comments/style.css 357 B
build/block-library/blocks/latest-posts/editor-rtl.css 213 B
build/block-library/blocks/latest-posts/editor.css 212 B
build/block-library/blocks/latest-posts/style-rtl.css 478 B
build/block-library/blocks/latest-posts/style.css 478 B
build/block-library/blocks/list/style-rtl.css 88 B
build/block-library/blocks/list/style.css 88 B
build/block-library/blocks/media-text/editor-rtl.css 266 B
build/block-library/blocks/media-text/editor.css 263 B
build/block-library/blocks/media-text/style-rtl.css 505 B
build/block-library/blocks/media-text/style.css 503 B
build/block-library/blocks/more/editor-rtl.css 431 B
build/block-library/blocks/more/editor.css 431 B
build/block-library/blocks/navigation-link/editor-rtl.css 668 B
build/block-library/blocks/navigation-link/editor.css 669 B
build/block-library/blocks/navigation-link/style-rtl.css 115 B
build/block-library/blocks/navigation-link/style.css 115 B
build/block-library/blocks/navigation-submenu/editor-rtl.css 296 B
build/block-library/blocks/navigation-submenu/editor.css 295 B
build/block-library/blocks/navigation/editor-rtl.css 2.26 kB
build/block-library/blocks/navigation/editor.css 2.26 kB
build/block-library/blocks/navigation/style-rtl.css 2.23 kB
build/block-library/blocks/navigation/style.css 2.22 kB
build/block-library/blocks/navigation/view.min.js 984 B
build/block-library/blocks/nextpage/editor-rtl.css 395 B
build/block-library/blocks/nextpage/editor.css 395 B
build/block-library/blocks/page-list/editor-rtl.css 401 B
build/block-library/blocks/page-list/editor.css 401 B
build/block-library/blocks/page-list/style-rtl.css 175 B
build/block-library/blocks/page-list/style.css 175 B
build/block-library/blocks/paragraph/editor-rtl.css 235 B
build/block-library/blocks/paragraph/editor.css 235 B
build/block-library/blocks/paragraph/style-rtl.css 335 B
build/block-library/blocks/paragraph/style.css 335 B
build/block-library/blocks/post-author/style-rtl.css 175 B
build/block-library/blocks/post-author/style.css 176 B
build/block-library/blocks/post-comments-form/editor-rtl.css 96 B
build/block-library/blocks/post-comments-form/editor.css 96 B
build/block-library/blocks/post-comments-form/style-rtl.css 508 B
build/block-library/blocks/post-comments-form/style.css 508 B
build/block-library/blocks/post-date/style-rtl.css 61 B
build/block-library/blocks/post-date/style.css 61 B
build/block-library/blocks/post-excerpt/editor-rtl.css 71 B
build/block-library/blocks/post-excerpt/editor.css 71 B
build/block-library/blocks/post-excerpt/style-rtl.css 141 B
build/block-library/blocks/post-excerpt/style.css 141 B
build/block-library/blocks/post-featured-image/editor-rtl.css 588 B
build/block-library/blocks/post-featured-image/editor.css 586 B
build/block-library/blocks/post-featured-image/style-rtl.css 319 B
build/block-library/blocks/post-featured-image/style.css 319 B
build/block-library/blocks/post-navigation-link/style-rtl.css 215 B
build/block-library/blocks/post-navigation-link/style.css 214 B
build/block-library/blocks/post-template/editor-rtl.css 99 B
build/block-library/blocks/post-template/editor.css 98 B
build/block-library/blocks/post-template/style-rtl.css 314 B
build/block-library/blocks/post-template/style.css 314 B
build/block-library/blocks/post-terms/style-rtl.css 96 B
build/block-library/blocks/post-terms/style.css 96 B
build/block-library/blocks/post-time-to-read/style-rtl.css 69 B
build/block-library/blocks/post-time-to-read/style.css 69 B
build/block-library/blocks/post-title/style-rtl.css 100 B
build/block-library/blocks/post-title/style.css 100 B
build/block-library/blocks/preformatted/style-rtl.css 125 B
build/block-library/blocks/preformatted/style.css 125 B
build/block-library/blocks/pullquote/editor-rtl.css 135 B
build/block-library/blocks/pullquote/editor.css 135 B
build/block-library/blocks/pullquote/style-rtl.css 335 B
build/block-library/blocks/pullquote/style.css 335 B
build/block-library/blocks/pullquote/theme-rtl.css 168 B
build/block-library/blocks/pullquote/theme.css 168 B
build/block-library/blocks/query-pagination-numbers/editor-rtl.css 122 B
build/block-library/blocks/query-pagination-numbers/editor.css 121 B
build/block-library/blocks/query-pagination/editor-rtl.css 221 B
build/block-library/blocks/query-pagination/editor.css 211 B
build/block-library/blocks/query-pagination/style-rtl.css 302 B
build/block-library/blocks/query-pagination/style.css 299 B
build/block-library/blocks/query-title/style-rtl.css 63 B
build/block-library/blocks/query-title/style.css 63 B
build/block-library/blocks/query/editor-rtl.css 450 B
build/block-library/blocks/query/editor.css 449 B
build/block-library/blocks/query/style-rtl.css 370 B
build/block-library/blocks/query/style.css 368 B
build/block-library/blocks/query/view.min.js 555 B
build/block-library/blocks/quote/style-rtl.css 222 B
build/block-library/blocks/quote/style.css 222 B
build/block-library/blocks/quote/theme-rtl.css 223 B
build/block-library/blocks/quote/theme.css 226 B
build/block-library/blocks/read-more/style-rtl.css 132 B
build/block-library/blocks/read-more/style.css 132 B
build/block-library/blocks/rss/editor-rtl.css 149 B
build/block-library/blocks/rss/editor.css 149 B
build/block-library/blocks/rss/style-rtl.css 289 B
build/block-library/blocks/rss/style.css 288 B
build/block-library/blocks/search/editor-rtl.css 178 B
build/block-library/blocks/search/editor.css 178 B
build/block-library/blocks/search/style-rtl.css 607 B
build/block-library/blocks/search/style.css 607 B
build/block-library/blocks/search/theme-rtl.css 114 B
build/block-library/blocks/search/theme.css 114 B
build/block-library/blocks/search/view.min.js 468 B
build/block-library/blocks/separator/editor-rtl.css 146 B
build/block-library/blocks/separator/editor.css 146 B
build/block-library/blocks/separator/style-rtl.css 234 B
build/block-library/blocks/separator/style.css 234 B
build/block-library/blocks/separator/theme-rtl.css 194 B
build/block-library/blocks/separator/theme.css 194 B
build/block-library/blocks/shortcode/editor-rtl.css 323 B
build/block-library/blocks/shortcode/editor.css 323 B
build/block-library/blocks/site-logo/editor-rtl.css 754 B
build/block-library/blocks/site-logo/editor.css 754 B
build/block-library/blocks/site-logo/style-rtl.css 204 B
build/block-library/blocks/site-logo/style.css 204 B
build/block-library/blocks/site-tagline/editor-rtl.css 86 B
build/block-library/blocks/site-tagline/editor.css 86 B
build/block-library/blocks/site-title/editor-rtl.css 116 B
build/block-library/blocks/site-title/editor.css 116 B
build/block-library/blocks/site-title/style-rtl.css 57 B
build/block-library/blocks/site-title/style.css 57 B
build/block-library/blocks/social-link/editor-rtl.css 184 B
build/block-library/blocks/social-link/editor.css 184 B
build/block-library/blocks/social-links/editor-rtl.css 682 B
build/block-library/blocks/social-links/editor.css 681 B
build/block-library/blocks/social-links/style-rtl.css 1.44 kB
build/block-library/blocks/social-links/style.css 1.43 kB
build/block-library/blocks/spacer/editor-rtl.css 348 B
build/block-library/blocks/spacer/editor.css 348 B
build/block-library/blocks/spacer/style-rtl.css 48 B
build/block-library/blocks/spacer/style.css 48 B
build/block-library/blocks/table/editor-rtl.css 432 B
build/block-library/blocks/table/editor.css 432 B
build/block-library/blocks/table/style-rtl.css 639 B
build/block-library/blocks/table/style.css 639 B
build/block-library/blocks/table/theme-rtl.css 146 B
build/block-library/blocks/table/theme.css 146 B
build/block-library/blocks/tag-cloud/style-rtl.css 251 B
build/block-library/blocks/tag-cloud/style.css 253 B
build/block-library/blocks/template-part/editor-rtl.css 403 B
build/block-library/blocks/template-part/editor.css 403 B
build/block-library/blocks/template-part/theme-rtl.css 101 B
build/block-library/blocks/template-part/theme.css 101 B
build/block-library/blocks/term-description/style-rtl.css 111 B
build/block-library/blocks/term-description/style.css 111 B
build/block-library/blocks/text-columns/editor-rtl.css 95 B
build/block-library/blocks/text-columns/editor.css 95 B
build/block-library/blocks/text-columns/style-rtl.css 166 B
build/block-library/blocks/text-columns/style.css 166 B
build/block-library/blocks/verse/style-rtl.css 99 B
build/block-library/blocks/verse/style.css 99 B
build/block-library/blocks/video/editor-rtl.css 552 B
build/block-library/blocks/video/editor.css 555 B
build/block-library/blocks/video/style-rtl.css 185 B
build/block-library/blocks/video/style.css 185 B
build/block-library/blocks/video/theme-rtl.css 126 B
build/block-library/blocks/video/theme.css 126 B
build/block-library/classic-rtl.css 179 B
build/block-library/classic.css 179 B
build/block-library/common-rtl.css 1.1 kB
build/block-library/common.css 1.1 kB
build/block-library/editor-elements-rtl.css 75 B
build/block-library/editor-elements.css 75 B
build/block-library/editor-rtl.css 12.1 kB
build/block-library/editor.css 12.1 kB
build/block-library/elements-rtl.css 54 B
build/block-library/elements.css 54 B
build/block-library/index.min.js 204 kB
build/block-library/reset-rtl.css 472 B
build/block-library/reset.css 472 B
build/block-library/style-rtl.css 13.9 kB
build/block-library/style.css 13.9 kB
build/block-library/theme-rtl.css 688 B
build/block-library/theme.css 693 B
build/block-serialization-default-parser/index.min.js 1.12 kB
build/block-serialization-spec-parser/index.min.js 2.87 kB
build/blocks/index.min.js 51.4 kB
build/commands/index.min.js 15.5 kB
build/commands/style-rtl.css 921 B
build/commands/style.css 918 B
build/components/index.min.js 255 kB
build/components/style-rtl.css 11.7 kB
build/components/style.css 11.7 kB
build/compose/index.min.js 12.1 kB
build/core-data/index.min.js 16.8 kB
build/customize-widgets/index.min.js 12 kB
build/customize-widgets/style-rtl.css 1.48 kB
build/customize-widgets/style.css 1.48 kB
build/data-controls/index.min.js 640 B
build/data/index.min.js 8.84 kB
build/date/index.min.js 17.8 kB
build/deprecated/index.min.js 451 B
build/dom-ready/index.min.js 324 B
build/dom/index.min.js 4.64 kB
build/edit-post/classic-rtl.css 544 B
build/edit-post/classic.css 545 B
build/edit-post/index.min.js 35.4 kB
build/edit-post/style-rtl.css 7.84 kB
build/edit-post/style.css 7.83 kB
build/edit-site/style-rtl.css 13.5 kB
build/edit-site/style.css 13.5 kB
build/edit-widgets/index.min.js 16.9 kB
build/edit-widgets/style-rtl.css 4.8 kB
build/edit-widgets/style.css 4.79 kB
build/editor/index.min.js 45.5 kB
build/editor/style-rtl.css 3.53 kB
build/editor/style.css 3.52 kB
build/element/index.min.js 4.82 kB
build/escape-html/index.min.js 537 B
build/format-library/index.min.js 7.71 kB
build/format-library/style-rtl.css 554 B
build/format-library/style.css 553 B
build/hooks/index.min.js 1.55 kB
build/html-entities/index.min.js 448 B
build/i18n/index.min.js 3.58 kB
build/interactivity/index.min.js 11.3 kB
build/is-shallow-equal/index.min.js 527 B
build/keyboard-shortcuts/index.min.js 1.72 kB
build/keycodes/index.min.js 1.87 kB
build/list-reusable-blocks/index.min.js 2.2 kB
build/list-reusable-blocks/style-rtl.css 836 B
build/list-reusable-blocks/style.css 836 B
build/media-utils/index.min.js 2.9 kB
build/notices/index.min.js 948 B
build/nux/index.min.js 1.99 kB
build/nux/style-rtl.css 735 B
build/nux/style.css 732 B
build/patterns/index.min.js 2.7 kB
build/patterns/style-rtl.css 240 B
build/patterns/style.css 240 B
build/plugins/index.min.js 1.79 kB
build/preferences-persistence/index.min.js 1.84 kB
build/preferences/index.min.js 1.24 kB
build/primitives/index.min.js 943 B
build/priority-queue/index.min.js 1.52 kB
build/private-apis/index.min.js 958 B
build/react-i18n/index.min.js 615 B
build/react-refresh-entry/index.min.js 9.47 kB
build/react-refresh-runtime/index.min.js 7.31 kB
build/redux-routine/index.min.js 2.7 kB
build/reusable-blocks/index.min.js 2.7 kB
build/reusable-blocks/style-rtl.css 243 B
build/reusable-blocks/style.css 243 B
build/rich-text/index.min.js 10.2 kB
build/router/index.min.js 1.78 kB
build/server-side-render/index.min.js 1.94 kB
build/shortcode/index.min.js 1.39 kB
build/style-engine/index.min.js 1.97 kB
build/sync/index.min.js 53.8 kB
build/token-list/index.min.js 582 B
build/url/index.min.js 3.73 kB
build/vendors/inert-polyfill.min.js 2.48 kB
build/vendors/react-dom.min.js 41.8 kB
build/vendors/react.min.js 4.02 kB
build/viewport/index.min.js 958 B
build/warning/index.min.js 249 B
build/widgets/index.min.js 7.16 kB
build/widgets/style-rtl.css 1.15 kB
build/widgets/style.css 1.16 kB
build/wordcount/index.min.js 1.02 kB

compressed-size-action

@t-hamano t-hamano force-pushed the site-editor/patterns-page-classic-theme branch from ea2656f to d92175f Compare August 31, 2023 14:23
@t-hamano t-hamano changed the title Site Editor: Publish Patterns page to non-block themes Site Editor: Allow non-block themes to access Patterns page Aug 31, 2023
@t-hamano t-hamano force-pushed the site-editor/patterns-page-classic-theme branch from d92175f to 211d276 Compare August 31, 2023 15:33
@t-hamano t-hamano changed the title Site Editor: Allow non-block themes to access Patterns page Site Editor: Allow all classic themes to access Patterns page Aug 31, 2023
@t-hamano t-hamano marked this pull request as ready for review August 31, 2023 15:52
Copy link
Contributor

@aaronrobertshaw aaronrobertshaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your efforts in improving access to the Patterns site editor page for non-block-themes @t-hamano.

It appears we have an issue we with the pattern commands available in the command palette. While testing this I noticed two patterns related commands.

Screenshot 2023-09-01 at 4 21 48 pm

It looks like #53496 introduced the more recent command when it probably needed to just update the existing one that took into account whether or not the user could access the site editor's pattern page.

I imagine we need to consolidate those commands before applying the new logic here.

cc/ @glendaviesnz & @richtabor

I'm also not sure what the current thinking is around allowing classic themes to access the patterns page just yet. If we proceed with this PR, I get the feeling we should also be cleaning up the access to the template parts list page etc as well.

Alternatively, perhaps a tracking issue to make sure we don't leave any loose ends here would help.

@t-hamano
Copy link
Contributor Author

t-hamano commented Sep 3, 2023

Thanks for the review, @aaronrobertshaw!

It looks like #53496 introduced the more recent command when it probably needed to just update the existing one that took into account whether or not the user could access the site editor's pattern page.

I agree. I have submitted #54133 which fixes this issue.

I'm also not sure what the current thinking is around allowing classic themes to access the patterns page just yet. If we proceed with this PR, I get the feeling we should also be cleaning up the access to the template parts list page etc as well.

The issue of compatibility between the classic theme and the command palette or site editor has often been addressed. Here is an example, which I believe is compatible enough for now, except for the duplication of pattern commands you reported.

@glendaviesnz
Copy link
Contributor

glendaviesnz commented Sep 3, 2023

I'm also not sure what the current thinking is around allowing classic themes to access the patterns page just yet.

I think it would be good to get some design input into this to see if we can define exactly what level of compatibility we want to provide to classic/hybrid themes. I have added the needs design input flag - but feel free to remove if you don't think this is needed.

@glendaviesnz glendaviesnz added the Needs Design Needs design efforts. label Sep 3, 2023
@t-hamano t-hamano force-pushed the site-editor/patterns-page-classic-theme branch from 211d276 to 93824f6 Compare September 5, 2023 07:03
@t-hamano
Copy link
Contributor Author

t-hamano commented Sep 5, 2023

I have Rebase this PR with the latest trunk, which will also fix the duplicate Pattarns command.

By the way, here is what I have in mind as a patch to submit to the core:

Details
diff --git a/src/wp-admin/menu.php b/src/wp-admin/menu.php
index 17317f9daa..460cd8d787 100644
--- a/src/wp-admin/menu.php
+++ b/src/wp-admin/menu.php
@@ -204,6 +204,8 @@ if ( ! is_multisite() && current_user_can( 'update_themes' ) ) {
 
 if ( wp_is_block_theme() ) {
        $submenu['themes.php'][6] = array( _x( 'Editor', 'site editor menu item' ), 'edit_theme_options', 'site-editor.php' );
+} else {
+       $submenu['themes.php'][6] = array( __( 'Patterns', 'site editor menu item' ), 'edit_theme_options', 'site-editor.php?path=/patterns' );
 }
 
 if ( ! wp_is_block_theme() && current_theme_supports( 'block-template-parts' ) ) {
@@ -219,9 +221,7 @@ $customize_url = add_query_arg( 'return', urlencode( remove_query_arg( wp_remova
 // Hide Customize link on block themes unless a plugin or theme
 // is using 'customize_register' to add a setting.
 if ( ! wp_is_block_theme() || has_action( 'customize_register' ) ) {
-       $position = ( wp_is_block_theme() || current_theme_supports( 'block-template-parts' ) ) ? 7 : 6;
-
-       $submenu['themes.php'][ $position ] = array( __( 'Customize' ), 'customize', esc_url( $customize_url ), '', 'hide-if-no-customize' );
+       $submenu['themes.php'][7] = array( __( 'Customize' ), 'customize', esc_url( $customize_url ), '', 'hide-if-no-customize' );
 }
 }
 
-if ( ! ( current_theme_supports( 'block-template-parts' ) || wp_is_block_theme() ) ) {
-       wp_die( __( 'The theme you are currently using is not compatible with the Site Editor.' ) );
-}
-
-$is_template_part = isset( $_GET['postType'] ) && 'wp_template_part' === sanitize_key( $_GET['postType'] );
+$is_template_part      = isset( $_GET['postType'] ) && 'wp_template_part' === sanitize_key( $_GET['postType'] );
 $is_template_part_path = isset( $_GET['path'] ) && 'wp_template_partall' === sanitize_key( $_GET['path'] );
+$is_patterns           = isset( $_GET['postType'] ) && 'wp_block' === sanitize_key( $_GET['postType'] );
+$is_patterns_path      = isset( $_GET['path'] ) && 'patterns' === sanitize_key( $_GET['path'] );
+
 $is_template_part_editor = $is_template_part || $is_template_part_path;
+$is_patterns_editor      = $is_patterns || $is_patterns_path;
 
-if ( ! wp_is_block_theme() && ! $is_template_part_editor ) {
-       wp_die( __( 'The theme you are currently using is not compatible with the Site Editor.' ) );
+if ( ! wp_is_block_theme() ) {
+       if ( ! current_theme_supports( 'block-template-parts' ) && $is_template_part_editor ) {
+               wp_die( __( 'The theme you are currently using is not compatible with the Site Editor.' ) );
+       }
+       if ( ! $is_template_part_editor && ! $is_patterns_editor ) {
+               wp_die( __( 'The theme you are currently using is not compatible with the Site Editor.' ) );
+       }
 }

@t-hamano t-hamano force-pushed the site-editor/patterns-page-classic-theme branch from 93824f6 to 494985e Compare September 5, 2023 07:08
Copy link
Contributor

@aaronrobertshaw aaronrobertshaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for the delays on getting back to this one @t-hamano, I've been wrestling with exactly what access classic patterns should have to the site editor's pattern page.

However, I believe the Patterns page in the Site Editor is designed to be available regardless of the type of theme.

I'm not one of the design team but I'm not sure I agree with this 100%. Which, I believe, is why we were waiting on some design feedback.

After some further discussions, I think there's some middle ground for classic themes that we could achieve for the 6.4 release.

  1. Only classic themes that also adopt block-template-parts support can access the pattern page.
  2. Without template parts support, a classic theme should be directed to the wp_block post-type index page and editor (as they do on trunk now in commands etc).

This would help prevent adding additional complexity to the patterns pages and screens. Make the page more consistent for all users that can access it etc.

It seems the primary issue for classic themes is the ability to easily access the post-type index page for patterns. The links via the block toolbar or command palette aren't easily discoverable.

The main proposal floated to address that was adding a link under Appearance > Patterns in wp-admin. Doing that only for classic themes without template part support would probably get my vote.

cc/ @SaxonF @jameskoster @glendaviesnz any thoughts given the limited time until the next beta?

@t-hamano
Copy link
Contributor Author

Thank you for the suggestion @aaronrobertshaw!

Only classic themes that also adopt block-template-parts support can access the pattern page.

Does this mean that when I press the back button on the "All Template Parts" page, I will be redirected to the Patterns page instead of the dashboard? Or do you mean that in addition to those, the classic theme with opt-in block-template-parts will show 'Patterns' menu item instead of 'Template Parts' in the Appearance menu?

@aaronrobertshaw
Copy link
Contributor

Sorry for the confusion, I could have been clearer in my comment.

Does this mean that when I press the back button on the "All Template Parts" page, I will be redirected to the Patterns page instead of the dashboard?

That's a good question. It might depend on whether the Appearance > Template Parts link continues to go to the All Template Parts index page or to the main Patterns page with a default template part category selected.

If it was the latter, back from the Patterns page would go back to wp-admin for both patterns and template parts (for classic themes with block-template-parts). The All Template Parts page's back button would then go back to the patterns page as suggested.

Or do you mean that in addition to those, the classic theme with opt-in block-template-parts will show 'Patterns' menu item instead of 'Template Parts' in the Appearance menu?

Eventually, Template Parts will be rolled into Patterns, so this will possibly be what it is long term. I'm not sure that will happen now though. Which, is why we might need some further thought on these links.

It seems the primary issue for classic themes is the ability to easily access the post-type index page for patterns. The links via the block toolbar or command palette aren't easily discoverable.

To bring the discussion back to what I think is the primary issue, classic themes need an easy way to access patterns and edit them. That could be solved by linking to edit.php?post_type=wp_block with no further changes to the patterns pages or their navigation.

@kevin940726
Copy link
Member

I also created #54342 as an alternative approach so that we can play with both and decide which is better for the users. Good thing is that seems like there's no blocker in terms of code and implementation, so we just need come to a consensus 👍 .

@t-hamano
Copy link
Contributor Author

Thanks for trying a different approach, @kevin940726!

What I would like to see is whether it makes sense to allow all themes to access the Pattern page, ultimately including classic themes that have not opted into block-template-parts. If there is no difference in understanding on this point, I think it would be better to proceed with #54342, which is a more gradual approach, and set it as a landing point in WP6.4 👍

What do you think?

@jameskoster
Copy link
Contributor

What I would like to see is whether it makes sense to allow all themes to access the Pattern page, ultimately including classic themes that have not opted into block-template-parts

Patterns are still useful to sites with classic themes, no? I think it makes sense to allow access even if they don't support template parts.

@kevin940726
Copy link
Member

If we want to allow all themes to access site-editor.php?path=/patterns, then I think this PR is more suitable than #54342. #54342 is heavily based on this PR anyway! What additional changes we want to add or remove here to make it mergable? I can provide any help here to get us across the finish line!

@aaronrobertshaw
Copy link
Contributor

aaronrobertshaw commented Sep 13, 2023

Thanks for weighing in @jameskoster 👍

Patterns are still useful to sites with classic themes, no? I think it makes sense to allow access even if they don't support template parts.

The consensus is definitely classic themes should have easier access to patterns. The question is whether that access should be the site editor patterns page or the post type page in wp-admin as you noted in #52150 (comment).

  1. site-editor.php?path=/patterns
  2. edit.php?post_type=wp_block

The "manage patterns" links in the editor only direct classic themes to the second link above.

Block Toolbar Options Menu
Screenshot 2023-09-13 at 11 23 18 am Screenshot 2023-09-13 at 11 22 36 am

Adding an Appearance > Patterns link to edit.php?post_type=wp_block is how I was leaning as an intermediate step while the patterns management page in the site editor stabilized.

My understanding is that for all classic themes to be directed to the site editor's pattern management page we need a core patch so that access is permitted to that page when reloading etc.

Would that prevent this change landing in Gutenberg, which could be used on WP <6.4? If that means we can't then update the manage pattern links, would it not be better to keep classic themes all going to the same patterns page?

If all that isn't a concern, then I don't have a strong opinion on direction, so if you're happy with all classic themes going to the patterns management page in the site editor, we should proceed with this PR. It will just need to update all the links missed that point to the edit.php?post_type=wp_block location.

@t-hamano
Copy link
Contributor Author

The question is whether that access should be the site editor patterns page or the post type page in wp-admin as you noted in #52150 (comment).

In my opinion, in the future, all themes should have access to the Patterns page in the Site Editor (site-editor.php?path=/patterns). With that in mind, the Post Type page (edit.php?post_type=wp_block) might only exist as a fallback page.

My understanding is that for all classic themes to be directed to the site editor's pattern management page we need a core patch so that access is permitted to that page when reloading etc.

Would that prevent this change landing in Gutenberg, which could be used on WP <6.4? If that means we can't then update the manage pattern links, would it not be better to keep classic themes all going to the same patterns page?

I think you are right. I have come up with the following plan to allow all themes to have access to the Site Editor's Patterns page in the future while maintaining full backward compatibility.

  • In all classic themes, change this PR so that the "Manage Patterns" link and command palette action always point to edit.php?post_type=wp_block. This is to prevent errors in accessing the Site Editor in WP versions that don't have a patch that allows access to site-editor.php?path=/patterns from classic themes. For example, if your site is under WP6.3 and you are using the latest Gutenberg, which includes this PR.
  • Submit a following core patch:
    • Add a Patterns link under the Appearance section that points to site-editor.php?path=/patterns.
    • Allow all classic themes to access site-editor.php?path=/patterns.
    • This patch is part of WP6.4.
  • In the future, when the minimum WordPress version supported by Gutenberg is 6.4, all classic themes should have access to site-editor.php?path=/patterns, so change the Manage Patterns link and the Command Palette action to always point to site-editor.php?path=/patterns.

Assuming this PR is merged and a patch like the one above is applied to WP6.4, the following scenario would be possible:

  • WP <6.3 without latest Gutenberg Plugin: same as before.
  • WP < 6.3 with the latest Gutenberg plugin: almost the same as before. However, when you access the template parts page (site-editor.php?path=/wp_template_part/all) in a classic theme that supports block-template-parts and press the back button, the Patterns page (site-editor.php?path=/patterns) is displayed.
  • WP 6.4 with or without the latest Gutenberg Plugin: All classic themes have a Patterns menu under the Appliance menu that takes you to the Patterns page (site-editor.php?path=/patterns) All classic themes can be accessed from the Patterns menu under the Appearance menu. However, the "Manage Patterns" link and command palette always point to edit.php?post_type=wp_block.

Sorry if there are any points that are confusing. I would appreciate your honest feedback 🙇

@aaronrobertshaw
Copy link
Contributor

In my opinion, in the future, all themes should have access to the Patterns page in the Site Editor (site-editor.php?path=/patterns

Yes, I agree 100% that, in the future, all themes will have access to the patterns management page in the site editor. I don't think that future will be until the minimum supported version is WP 6.4.

WP 6.4 with or without the latest Gutenberg Plugin: All classic themes have a Patterns menu under the Appliance menu that takes you to the Patterns page (site-editor.php?path=/patterns) All classic themes can be accessed from the Patterns menu under the Appearance menu. However, the "Manage Patterns" link and command palette always point to edit.php?post_type=wp_block.

I believe the inconsistency here is a problem. Users should be taken to the same location via the Appearance > Patterns link or the "manage patterns" link.

As noted previously, my vote is that the Appearance > Patterns link for classic themes in 6.4 goes to edit.php?post_type=wp_block which is consistent with the manage patterns links. It also still covers the primary issue which is providing access to some level of pattern management for classic themes.

I do appreciate the desire to access the new site editor page, it is the goal long term, no arguments here. To maintain a consistent experience in a backwards-compatible manner, I think we need to take this interim step.

@t-hamano
Copy link
Contributor Author

I believe the inconsistency here is a problem. Users should be taken to the same location via the Appearance > Patterns link or the "manage patterns" link.

As noted previously, my vote is that the Appearance > Patterns link for classic themes in 6.4 goes to edit.php?post_type=wp_block which is consistent with the manage patterns links. It also still covers the primary issue which is providing access to some level of pattern management for classic themes.

I see, so it seems better to proceed with #54342, which has consistent Pattern links and is a more step-by-step approach?

However, I have concerns regarding the following specification:

For classic themes with block-template-parts support: "Manage patterns" points to site-editor.php?path=/patterns. Add a Patterns link under the Appearance section that points to site-editor.php?path=/patterns as well.

I think this would work well for WordPress with the core patch applied as suggested in #54342.

For example, suppose you have a WordPress 6.3 site with the Classic theme with block-template-parts support enabled, and the Gutenberg plugin with #54342 included is enabled.

  • Since the core patch has not been applied, the Template Parts link will still appear in the Appearance section. Users will access the Template Parts link. When the back button is pressed, the user is taken to the Patterns page. In other words, to access the Patterns page, the user must go through the Template Parts link. Also, reloading the browser on the Patterns page will result in an access error.
  • The Manage Patterns link or the Patterns link in the command palette points to site-editor.php?path=/patterns. If the core patch is not applied, the Patterns page cannot be accessed and an error will occur when accessing the link.

I would like to consider whether this backward compatibility issue is acceptable.

@aaronrobertshaw
Copy link
Contributor

@t-hamano thanks for your patience in working through this one 👍

The backwards compatibility issue is a concern, 100%.

When I initially floated allowing classic themes with block-template-parts support access to the site editor's pattern page, I hadn't yet thought of this BC issue.

All commands from the command palette, the "manage patterns" links, and the Appearance > Patterns link should go to edit.php?post_type=wp_block for classic themes until WP 6.4 is the minimum supported version.

@t-hamano
Copy link
Contributor Author

All commands from the command palette, the "manage patterns" links, and the Appearance > Patterns link should go to edit.php?post_type=wp_block for classic themes until WP 6.4 is the minimum supported version.

That's right, I'm sorry I couldn't convey my intentions well 😅

Based on this, my new plan is as follows.

  • Close this PR and #54342: Because in the trunk, all classic themes are already handled to always point to edit.php?post_type=wp_block. If classic themes have a route or action that allows access to site-editor.php?path=/patterns, we need to fix it.
  • Submit a core patch like below:
    • For classic themes: Add a Patterns link under the Appearance section that points to edit.php?post_type=wp_block.
    • For classic themes with block-template-parts support: Add a Patterns link under the Appearance section that points to edit.php?post_type=wp_block. Existing Template Parts link will remain as before.
    • Apply the changes described in this comment to allow access to the Site Editor from the classic theme. However, this does not need to be officially announced, as this is the preparation that the classic theme will be able to access site-editor.php?path=/patterns on a consistent basis in the future.
  • When the minimum WordPress version supported by the Gutenberg plugin was raised to 6.4:
    • Change all pattern links to point to site-editor.php?path=/patterns in all classic themes. This is because WordPress 6.4 has already allowed access to site-editor.php?path=/patterns from the classic theme.
    • Submit a core patch like below:
      • Change the Patterns link in the Appearance section from edit.php?post_type=wp_block to site-editor.php?path=/patterns.
      • For classic themes that support block-template-parts, remove the Template Parts link in the Appearance section.

It will probably be around WP6.5 or WP6.6 that classic themes will be able to consistently use the site editor pattern page, but I think backwards compatibility will be maintained.


Alternatively, I think the following approach may be possible:

  • On the Gutenberg side, check if the Patterns link (site-editor.php?path=/patterns) has been added in the Apperance section and add it as an endpoint. In other words, it checks to see if a patch has been applied to the core that allows the classic theme to access site-editor.php?path=/patterns.
  • If the Patterns menu has been added, point all pattern links to site-editor.php?path=/patterns. For example, as below:
    const isBlockBasedTheme = useIsBlockBasedTheme();
    const { hasPatternsMenu } = useSelect(
    	( select ) =>
    		select( coreStore ).getCurrentTheme()?.has_patterns_menu,
    	[]
    );
    const patternsUrl =
    	isBlockBasedTheme || hasPatternsMenu
    		? addQueryArgs( 'site-editor.php', {
    				path: '/patterns',
    		  } )
    		: 'edit.php?post_type=wp_block';

@kevin940726
Copy link
Member

kevin940726 commented Sep 13, 2023

Correct me if I'm wrong, so here's basically the plan now:

In Core WP 6.4:

  1. Add an Appearance -> Patterns link for all classic themes that point to edit.php?post_type=wp_block.
  2. Allow site-editor.php?path=/patterns access for classic themes.

In gutenberg after the minimum required version is WP 6.4:

  1. Change all "Manage patterns" links to point to site-editor.php?path=/patterns.
  2. Change the Appearance -> Patterns links for classic themes to point to site-editor.php?path=/patterns.

(Oops, @t-hamano beat me to it 😂)

@aaronrobertshaw
Copy link
Contributor

Based on this, my new plan is as follows.

The new plan makes sense to me 👍

@t-hamano
Copy link
Contributor Author

t-hamano commented Sep 13, 2023

Thanks for all your advice🙇 Then I would like to submit the core patch as soon as possible.

Or should we update this patch submitted by @kevin940726?

@kevin940726
Copy link
Member

Or should we update this patch submitted by @kevin940726?

I haven't submitted the patch, it's just a branch on my fork 😅 . But we can certainly use that if you prefer. Given that it's only a few lines, and you've done most of the work, I think you can submit the patch so that you'll get the credit you deserve. 💯

@aaronrobertshaw
Copy link
Contributor

Then I would like to submit the core patch as soon as possible. Or should we update this patch submitted by @kevin940726?

Whatever is easiest for you!

I like @kevin940726's suggestion that you take the deserved credit. Whether it ended up as a small change or not, it took patience, perseverance, and care to arrive at the best result. That's worth celebrating in my book 🎉

Kudos also to Kai for helping us work through possibilities 👍

@t-hamano
Copy link
Contributor Author

I discovered the unintended behavior while writing a core patch to allow access to the Pattern page from the classic theme. Therefore, I have submitted #54422 which fixes this one.

@t-hamano
Copy link
Contributor Author

Core patch submitted: WordPress/wordpress-develop#5201

Copy link
Contributor

@aaronrobertshaw aaronrobertshaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe the consensus ended up that all the links to patterns page should remain consistent.

From that, my understanding is that the command palette changes here need to be reverted so that classic themes will still be directed to the edit.php?post_type=wp_block page matching the "manage patterns" links in the editor along with the new Appearance > Patterns link introduced in WordPress/wordpress-develop#5201

@t-hamano
Copy link
Contributor Author

t-hamano commented Sep 20, 2023

This PR was originally intended for the classic theme to have consistent access to the Patterns page in the Site editor (site-editor.php?path=/patterns). However, after some discussion, we came to the conclusion that the post type index page (edit.php?post_type=wp_block) should be accessed consistently as before.

As a result, I think this PR should be closed, as I suggested in this comment. Instead, I'm filing #54422 to address the issue that can occur if users access the pattern page directly. Is my understanding correct?

@aaronrobertshaw
Copy link
Contributor

As a result, I think this PR should be closed, as I suggested in #54066 (comment). Instead, I'm filing #54422 to address the issue that can occur if users access the pattern page directly. Is my understanding correct?

No issues here with closing this PR 👍

I was confused given this PR was linked from your core patch in this comment which said you wanted to ship it.

@t-hamano
Copy link
Contributor Author

I was confused given this PR was linked from your core patch in this comment which said you wanted to ship it.

Admittedly, the Gutenberg link I put in the core patch wasn't the right one 🙈 I would like to close this PR and update the core patch information.

@t-hamano t-hamano closed this Sep 20, 2023
@aaronrobertshaw
Copy link
Contributor

aaronrobertshaw commented Sep 20, 2023

Admittedly, the Gutenberg link I put in the core patch wasn't the right one

All good. I'm easily confused though 😂

@tinjure20
Copy link

I have been trying out this new 6.4 feature to learn more about exposing patterns in classic themes. I am basically following to the instructions outlined in this PR and using these testing environment:

  • WordPress: 6.4-beta1-56750
  • PHP: 8.0.22
  • MacOS Ventura 13.5.2
  • Theme: TT1 v1.9
  • Plugin: Gutenberg 16.7 active

I could replicate the instructions for the TT3 theme described here.

For the TT1, I was only able to expose template parts, but not the patterns described in the instructions. I get the following message:

Screenshot 2023-09-30 at 5 08 21 AM

What am I doing wrong here?

@t-hamano
Copy link
Contributor Author

Hi @tinjure20,

You are not performing an incorrect test procedure. The #5201 has not yet been committed into the WP core, so even if you update to WordPress Beta, you still cannot access it from the Classic Editor except for the Template Parts Editor in the Site Editor.

@t-hamano t-hamano deleted the site-editor/patterns-page-classic-theme branch September 30, 2023 14:47
@tinjure20
Copy link

Hello @t-hamano,

Thank you very much for your prompt response. Just a quick questions: when this feature would be available? by RC1?. Thank you.

@t-hamano
Copy link
Contributor Author

t-hamano commented Oct 2, 2023

Hi @tinjure20,

I don't yet know in which phase it will be included, but we are doing our best to ship this in 6.4.

@aaronrobertshaw
Copy link
Contributor

Unfortunately, this has been moved to WP 6.5. More info can be found on the related issue and core patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") Needs Design Needs design efforts. [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants