[wp-trac] [WordPress Trac] #22251: Helper function to simplify checking for constants

WordPress Trac noreply at wordpress.org
Wed Feb 18 14:14:16 UTC 2015


#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 johnjamesjacoby):

 Replying to [comment:20 nacin]:
 > Has anyone ever taken a look at old bbPress? It has a $bb object where
 you can set option names/values. I wonder if we can learn from their
 implementation (including what not to do).

 Came here to say exactly this.

 Here's a [https://gist.github.com/johnjamesjacoby/a9e9ae5ccc4d0713fa17
 Gist from Flox.io] of what's currently required to provide immutable
 predefined configurations that don't require touching the DB. It's not
 overly complex, but we can be more intentional in this area ala bbPress or
 any of the others Jeremy mentioned above.

 I generally like everything I see in this ticket. Nice work everyone.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/22251#comment:28>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list