[wp-trac] [WordPress Trac] #41254: Add $default to pre_option_{$option} filter

WordPress Trac noreply at wordpress.org
Thu Jul 6 14:59:21 UTC 2017


#41254: Add $default to pre_option_{$option} filter
--------------------------------+------------------
 Reporter:  sc0ttkclark         |       Owner:
     Type:  enhancement         |      Status:  new
 Priority:  normal              |   Milestone:  4.9
Component:  Options, Meta APIs  |     Version:  4.4
 Severity:  normal              |  Resolution:
 Keywords:  has-patch commit    |     Focuses:
--------------------------------+------------------
Changes (by DrewAPicture):

 * keywords:   => has-patch commit
 * milestone:  Awaiting Review => 4.9


Comment:

 I'm on board with this. Having access to the value of `$default` here
 would be useful, and actually also in the `pre_site_option_{$option}` hook
 as well.

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


More information about the wp-trac mailing list