[wp-trac] [WordPress Trac] #53175: Block Editor: Include the theme.json infrastructure code and support

WordPress Trac noreply at wordpress.org
Tue May 25 23:50:18 UTC 2021


#53175: Block Editor: Include the theme.json infrastructure code and support
--------------------------------------+--------------------------
 Reporter:  youknowriad               |       Owner:  youknowriad
     Type:  task (blessed)            |      Status:  reopened
 Priority:  normal                    |   Milestone:  5.8
Component:  Editor                    |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+--------------------------

Comment (by TimothyBlynJacobs):

 I'm not sure loading these files manually is the right fix. The site won't
 be properly loaded during `script-loader.php`, even if include those theme
 API functions. So the output would be incorrect. I think we should try the
 `class_exists` check @noisysocks suggested.

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


More information about the wp-trac mailing list