[wp-trac] [WordPress Trac] #54336: Add Global Styles REST API endpoints from Gutenberg plugin into Core

WordPress Trac noreply at wordpress.org
Tue Nov 9 18:06:50 UTC 2021


#54336: Add Global Styles REST API endpoints from Gutenberg plugin into Core
--------------------------------------+-------------------------------
 Reporter:  noisysocks                |       Owner:  jorgefilipecosta
     Type:  task (blessed)            |      Status:  assigned
 Priority:  normal                    |   Milestone:  5.9
Component:  REST API                  |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-------------------------------

Comment (by desrosj):

 In [changeset:"52077" 52077]:
 {{{
 #!CommitTicketReference repository="" revision="52077"
 Themes: Avoid fatal error loading admin styles when `SCRIPT_DEBUG` is
 `false`.

 This removes the use of `get_theme_file_path()` within
 `WP_Theme_JSON_Resolver` in favor of the similar
 `get_file_path_from_theme()` method.

 The former is found within `wp-includes/link-template.php`, which is not
 currently loaded when `load-styles.php` attempts to load the necessary
 styles. `self::get_file_path_from_theme()` was used previously, but this
 was changed in [52049].

 Props Mamaduka, audrasjb, hellofromTonya, jorbin, desrosj.
 Fixes #54401. See #54336.
 }}}

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


More information about the wp-trac mailing list