[wp-trac] [WordPress Trac] #22251: Helper function to simplify checking for constants
WordPress Trac
noreply at wordpress.org
Tue Aug 1 17:30:28 UTC 2017
#22251: Helper function to simplify checking for constants
----------------------------+-----------------------------
Reporter: evansolomon | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Bootstrap/Load | Version:
Severity: normal | Resolution:
Keywords: dev-feedback | Focuses:
----------------------------+-----------------------------
Comment (by flixos90):
I prefer more specific functions to access values from constants, like
those @swissspidy mentioned above.
This allows furthermore for specific filters, which are more flexible than
a constant (unit tests!) and could be used as an alternative. I think it
makes more sense to iterate over time to introduce more such functions in
a consistent manner than a very general `wp_constant()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/22251#comment:30>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list