Ticket #24108: option.php.patch
| File option.php.patch, 371 bytes (added by , 13 years ago) |
|---|
| Line | |
|---|---|
| 1 | *** option.php 2013-04-16 17:57:49.000000000 -0400 |
| 2 | --- option.php.new 2013-04-16 19:47:53.000000000 -0400 |
| 3 | *************** |
| 4 | *** 360,365 **** |
| 5 | --- 360,369 ---- |
| 6 | function delete_option( $option ) { |
| 7 | global $wpdb; |
| 8 | |
| 9 | + $option = trim($option); |
| 10 | + if ( empty($option) ) |
| 11 | + return false; |
| 12 | + |
| 13 | wp_protect_special_option( $option ); |
| 14 | |
| 15 | // Get the ID, if no ID then return |
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)