[wp-trac] [WordPress Trac] #54401: Fix fatal error in /wp-admin/load-styles.php
WordPress Trac
noreply at wordpress.org
Tue Nov 9 16:05:46 UTC 2021
#54401: Fix fatal error in /wp-admin/load-styles.php
--------------------------------------+---------------------
Reporter: Mamaduka | Owner: (none)
Type: defect (bug) | Status: new
Priority: highest omg bbq | Milestone: 5.9
Component: Themes | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+---------------------
Changes (by desrosj):
* priority: normal => highest omg bbq
Comment:
I'm changing this to the highest priority because the admin is completely
broken.
For reference, the changeset that introduced this issue is [52049].
I've only just started investigating, but I currently do not yet support
moving these functions.
It looks like [52049] changes from using
`self::get_file_path_from_theme()` to `get_theme_file_path()`. But it
seems that there are plenty of other calls throughout the file to
`self::get_file_path_from_theme()`.
I'd like to understand why this method can no longer be used, and why
functions like `get_template_directory()`, which are included in
`theme.php` already (and `get_theme_file_path() uses anyway), are not able
to be used here.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54401#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list