[wp-trac] [WordPress Trac] #54460: Ensure links to the Customizer send users to an appropriate destination in 5.9

WordPress Trac noreply at wordpress.org
Tue Nov 30 14:25:48 UTC 2021


#54460: Ensure links to the Customizer send users to an appropriate destination in
5.9
-------------------------------------------------+-------------------------
 Reporter:  jameskoster                          |       Owner:
                                                 |  hellofromTonya
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  5.9
Component:  General                              |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch commit has-unit-tests      |     Focuses:  ui,
  has-testing-info                               |  administration
-------------------------------------------------+-------------------------
Changes (by hellofromTonya):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"52279" 52279]:
 {{{
 #!CommitTicketReference repository="" revision="52279"
 Administration: For block themes, link to Site Editor interface instead of
 Customizer in Dashboard's welcome panel and Themes interface.

 For block themes (like Twenty Twenty-Two), Customizer menu item is removed
 and replaced with the Site Editor menu item. However, other links exist in
 the Dashboard's welcome panel "Customize Your Site" button and the
 "Customize" button in each theme listed in the Appearance > Themes
 interface.

 This commit changes each of those remaining links to link to the Site
 Editor interface instead of the Customizer.

 To help identify block vs non-block themes, two method methods are
 introduced in `WP_Theme`:

 * `WP_Theme:: is_block_based()` which identifies if the theme is a block
 theme or not.
 * `WP_Theme::get_file_path()` which is similar to `get_theme_file_path()`
 but uses the directories within the theme object.

 Both of these new methods include test coverage including the addition of
 a parent and child block theme in test data.

 Follow-up to [18749], [35483], [42013], [42169].

 Props antonvlasenko, jameskoster, hellofromTonya, matveb, noisysocks,
 poena, sergeybiryukov.
 Fixes #54460.
 }}}

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


More information about the wp-trac mailing list