[wp-trac] [WordPress Trac] #38650: Provide some guidance on what conditionals can/should be used in default-filters.php
WordPress Trac
noreply at wordpress.org
Mon Sep 23 10:01:30 UTC 2024
#38650: Provide some guidance on what conditionals can/should be used in default-
filters.php
----------------------------+---------------------
Reporter: helen | Owner: jorbin
Type: enhancement | Status: closed
Priority: low | Milestone: 6.7
Component: Bootstrap/Load | Version:
Severity: minor | Resolution: fixed
Keywords: has-patch | Focuses: docs
----------------------------+---------------------
Comment (by younis7788):
Replying to [ticket:38650 helen]:
> There are a lot of things you can't use in `default-filters.php`, such
as `get_option()` or `is_customize_preview()`. Those deeply familiar with
how load works might have some idea as to what's safe and what isn't, but
it's generally confusing and a little opaque. I'd suggest some kind of
inline comment at the top explaining the point of the file and what's
generally safe (i.e. stuff in `load.php` as I understand?).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38650#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list