[wp-trac] [WordPress Trac] #37930: Introduce a general `pre_option` filter in `get_option()`

WordPress Trac noreply at wordpress.org
Fri Mar 24 01:37:20 UTC 2017


#37930: Introduce a general `pre_option` filter in `get_option()`
--------------------------------+------------------------------
 Reporter:  flixos90            |       Owner:
     Type:  enhancement         |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Options, Meta APIs  |     Version:
 Severity:  normal              |  Resolution:
 Keywords:  has-patch           |     Focuses:
--------------------------------+------------------------------

Comment (by desrosj):

 Made an adjustment on the patch. The filter above it checks for `false !==
 $value` where the first patch checked for `! is_null()`. Changed that for
 consistency.

 Also, updated the PHPDocblock to reflect `4.8.0`, and fix a typo.

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


More information about the wp-trac mailing list