[wp-trac] [WordPress Trac] #54401: Fix fatal error in /wp-admin/load-styles.php

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


#54401: Fix fatal error in /wp-admin/load-styles.php
---------------------------------------------+----------------------
 Reporter:  Mamaduka                         |       Owner:  desrosj
     Type:  defect (bug)                     |      Status:  closed
 Priority:  highest omg bbq                  |   Milestone:  5.9
Component:  Themes                           |     Version:  trunk
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+----------------------
Changes (by desrosj):

 * owner:  (none) => desrosj
 * status:  new => closed
 * resolution:   => fixed


Comment:

 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/54401#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list