[wp-trac] [WordPress Trac] #54596: Block theme with period in name causes blank editor

WordPress Trac noreply at wordpress.org
Mon Dec 13 21:51:51 UTC 2021


#54596: Block theme with period in name causes blank editor
-------------------------------------------------+-------------------------
 Reporter:  mkaz                                 |       Owner:
                                                 |  hellofromTonya
     Type:  defect (bug)                         |      Status:  accepted
 Priority:  normal                               |   Milestone:  5.9
Component:  REST API                             |     Version:  trunk
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-testing-info has-      |     Focuses:
  unit-tests                                     |
-------------------------------------------------+-------------------------

Comment (by hellofromTonya):

 = Test Report

 Env:
 - OS: macOS Big Sur 11.6
 - Browsers: Edge, Chrome, Safari, and Firefox
 - Theme: Copy of TT2 with directory name changed (see test info)
 - Plugins: None
 - WordPress: trunk
 - Patch: PR 2034

 == Steps

 1. Copy TT2 theme:
    * Rename it's directory to `twentytwentytwo @[0.4.0] ( - _ - )`
    * Open `style.css` and change the `Theme Name`
 2. Go to Appearance > Themes
 3. Activate the new TT2 theme with the funky directory naming
 4. Go to the Site Editor, i.e. click on "Customize" button
 Expected behavior: The Site Editor should load
 5. Navigate back to the Themes UI
 6. Activate the original TT2 theme
 7. Rename the TT2 copy to `twentytwentytwo {notvalid}`
 8. Activate this TT2
 9. Click on "Customize" button
 Expected behavior: The Site Editor should not load as there's an error
 with the invalid theme directory name

 == Results

 - Confirmed using space, `-`, `_`, `.`, `@`, `[`, `]`, `(`, `)` characters
 in dirname works ✅
 - Confirmed using `{` and `}` does not work and gives a 404 error ✅

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


More information about the wp-trac mailing list