[wp-trac] [WordPress Trac] #28402: Pass option name to pre_option_OPTION and pre_update_option_OPTION filters

WordPress Trac noreply at wordpress.org
Thu May 29 23:17:23 UTC 2014


#28402: Pass option name to pre_option_OPTION and pre_update_option_OPTION filters
--------------------------------+-----------------------------
 Reporter:  Viper007Bond        |      Owner:
     Type:  enhancement         |     Status:  new
 Priority:  lowest              |  Milestone:  Awaiting Review
Component:  Options, Meta APIs  |    Version:  3.9.1
 Severity:  trivial             |   Keywords:  has-patch
  Focuses:                      |
--------------------------------+-----------------------------
 If you want to hook a common callback function onto multiple
 `pre_option_OPTION` or `pre_update_option_OPTION` filters, you have to
 parse `current_filter()` to get what option is currently being modified.
 Instead we could just pass `$option` as another parameter.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28402>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list