[wp-trac] [WordPress Trac] #37929: Add `pre_delete_option` filter

WordPress Trac noreply at wordpress.org
Sun Sep 4 09:20:28 UTC 2016


#37929: Add `pre_delete_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           |     Focuses:
--------------------------------+------------------------------

Comment (by OriginalEXE):

 Interesting idea.

 In your patch, maybe you should use

 {{{#!php
 ! is_null( $skip )
 }}}

  instead of

 {{{#!php
 null !== $skip
 }}}

 to keep it consistent with the null check immediately below.

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


More information about the wp-trac mailing list