[wp-trac] [WordPress Trac] #27208: Make add_filter and add_action available in wp-config.php
WordPress Trac
noreply at wordpress.org
Tue Feb 25 16:55:31 UTC 2014
#27208: Make add_filter and add_action available in wp-config.php
-------------------------------+------------------------------
Reporter: Denis-de-Bernardy | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bootstrap/Load | Version: 3.8.1
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------------+------------------------------
Comment (by nacin):
The test framework actually has the ability to pre-add filters in config
context. There are better ways to test things; we don't need this for unit
tests.
While I can see the benefits, there is also a huge can of worms here. I
don't have much of a desire for this to be a thing.
Side note, functions.php isn't needed. A callback doesn't need to exist
until the hook is run, not when it is added.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27208#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list