[wp-trac] [WordPress Trac] #24108: delete_option() does not handle blank $option values

WordPress Trac noreply at wordpress.org
Tue Apr 16 23:45:35 UTC 2013


#24108: delete_option() does not handle blank $option values
-----------------------------+--------------------------
 Reporter:  jsmoriss         |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  General
  Version:  3.5.1            |   Severity:  normal
 Keywords:                   |
-----------------------------+--------------------------
 Both add_option() and update_option() use the following before calling
 wp_protect_special_option(), but delete_option() does not:

 {{{
 $option = trim($option);
 if ( empty($option) )
     return false;

     wp_protect_special_option( $option );
 }}}

 I would suggest adding it delete_option() so it can handle blank $option
 values more elegantly.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/24108>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list