[wp-trac] [WordPress Trac] #59417: `load-styles.php` no longer outputs styles after deprecating TEMPLATEPATH
WordPress Trac
noreply at wordpress.org
Wed Sep 20 23:53:02 UTC 2023
#59417: `load-styles.php` no longer outputs styles after deprecating TEMPLATEPATH
-----------------------------------+-----------------------------
Reporter: iandunn | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: trunk
Severity: normal | Keywords:
Focuses: template, performance |
-----------------------------------+-----------------------------
It looks like `load-styles.php` no longer outputs anything after r56635.
1. Activate TwentyTwentyThree (maybe not necessary)
1. `git checkout ec21b604e0`. This is the Git equivalent of r56635.
1. `curl -s https://wp-develop.test/wp-admin/load-styles.php?load=l10n,wp-
auth-check`. You should see empty output.
1. `git co @~1`. Check out the commit before r56635.
1. `curl -s https://wp-develop.test/wp-admin/load-styles.php?load=l10n,wp-
auth-check`. You should see a couple dozen lines of CSS.
I think the problem may be related to how `load-styles.php` includes
`noop.php`, so the call to `get_option()` in `get_stylesheet()` will
return `null`. Similar things may happen with regards to hooks.
`noop.php` doesn't include a stub for `has_filter()`, though, which may
cause further unexpected behavior in `get_stylesheet_directory()`.
On wordpress.org we also saw `wp-admin` load without any CSS, but I wasn't
able to quickly reproduce that in a clean install. It may be due to using
a parent block theme or some other customization.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59417>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list