[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
Sat Aug 31 15:08:28 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 utech1):
Here’s a short example of an inline comment that could be added at the top
of default-filters.php:
{{{
<?php
// Note: In this file, avoid using functions like get_option() or
is_customize_preview()
// due to the timing of when this file is loaded. Safe functions are
generally those
// included in load.php. Ensure to understand the loading sequence for
function usage.
?>
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38650#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list