[wp-trac] [WordPress Trac] #61205: Add support for relative paths to theme assets in theme.json

WordPress Trac noreply at wordpress.org
Mon May 13 23:50:56 UTC 2024


#61205: Add support for relative paths to theme assets in theme.json
-----------------------------+------------------------------
 Reporter:  ramonopoly       |       Owner:  (none)
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  REST API         |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:  rest-api
-----------------------------+------------------------------

Comment (by ramonopoly):

 > However in the editor, there is no equivalent to get_theme_file_uri in
 the clientside JS code.

 There was an [https://github.com/WordPress/gutenberg/pull/61401 attempt to
 implement one], however the nature of the async code meant that CSS could
 not be generated synchronously.

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


More information about the wp-trac mailing list