[wp-trac] [WordPress Trac] #37928: add `pre_add_option` filter

WordPress Trac noreply at wordpress.org
Sat Sep 3 10:42:21 UTC 2016


#37928: add `pre_add_option` filter
-------------------------------------+------------------------------
 Reporter:  flixos90                 |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Options, Meta APIs       |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-refresh  |     Focuses:
-------------------------------------+------------------------------
Changes (by flixos90):

 * keywords:  has-patch => has-patch needs-refresh


Comment:

 Replying to [comment:3 jipmoors]:
 > I would prefer to have a separate filter to allow a short-cicuit instead
 of abusing a return value to imply such a behaviour.

 Definitely makes sense. I patched this way too quickly. :)

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


More information about the wp-trac mailing list