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

WordPress Trac noreply at wordpress.org
Wed Dec 15 05:21:07 UTC 2021


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

Comment (by bijayyadav):

 I installed 5.3 beta and copied `twentytwentytwo` theme and renamed it
 `twentytwentytwo!`. After that on the backend, I clicked on Appearance >
 Editor and the page was blank. There are two errors on console:

 * http://localhost/beta/wp-
 json/wp/v2/templates/twentytwentytwo!//home?context=edit&_locale=user 404
 (Not Found)
 * Uncaught (in promise) TypeError: Cannot destructure property 'id' of
 '(intermediate value)' as it is null. - http://localhost/beta/wp-
 includes/js/dist/edit-site.min.js?ver=dd4604f4d44cfa19261ecfc79f1e6f06

 Screenshot: [http://prntscr.com/2328a4g]

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


More information about the wp-trac mailing list