[wp-trac] [WordPress Trac] #61109: Officially expose the Site Editor Patterns page for all classic themes

WordPress Trac noreply at wordpress.org
Wed May 22 19:21:29 UTC 2024


#61109: Officially expose the Site Editor Patterns page for all classic themes
-------------------------------------------------+-------------------------
 Reporter:  wildworks                            |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  6.6
Component:  Editor                               |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-screenshots has-       |     Focuses:
  testing-info                                   |
-------------------------------------------------+-------------------------
Changes (by ironprogrammer):

 * keywords:  has-patch => has-patch has-screenshots has-testing-info


Comment:

 This PR functions as advertised, unifying patterns and template parts
 access in the site editor. Thanks, @wildworks!

 == Test Report
 Patch tested: https://github.com/WordPress/wordpress-develop/pull/6480

 === Environment
 - Hardware: MacBook Pro Apple M1 Pro
 - OS: macOS 14.5
 - Browser: Safari 17.5
 - Server: nginx/1.25.5
 - PHP: 8.2.19
 - MySQL: 8.0.27
 - WordPress: 6.6-alpha-57778-src
 - Themes tested:
   - twentytwentyfour v1.1
   - twentytwentyone v2.2
   - twentytwenty v2.6
   - twentynineteen v2.8
   - twentyseventeen v3.6
   - twentysixteen v3.2
   - twentyfifteen v3.7
   - twentyfourteen v3.9
   - twentythirteen v4.1
   - twentytwelve v4.2
   - twentyeleven v4.6
   - twentyten v4.1
   - custom theme with `add_theme_support( 'block-template-parts' )`

 === Actual Results
 - ✅ For non-block themes, ''Appearance > Patterns'' links to `/wp-admin
 /site-editor.php?path=/patterns` (Figure 1).
 - ✅ For non-block theme with `block-template-parts` support, ''Appearance
 > Template Parts'' menu item is removed (but remains accessible via editor
 ''Patterns > Template Parts'' menu.
 - ✅ Menu items order (Patterns, Customize, Widgets) displays as expected.
 - ✅ For block theme, menu is unaffected.


 === Supplemental Artifacts
 ''Figure 1: New link path for Patterns menu item.''
   [[Image(https://cldup.com/AOqk9nuU8u.thumb.png)]]
 (Disregard "in a new tab", which is an artifact of pressing `Cmd` while
 capturing this image.)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61109#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list