mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Notice fixes from filosofo and Viper007Bond. see #7509
git-svn-id: https://develop.svn.wordpress.org/trunk@9506 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -70,7 +70,9 @@ case 'update':
|
||||
if ( $options ) {
|
||||
foreach ( $options as $option ) {
|
||||
$option = trim($option);
|
||||
$value = $_POST[$option];
|
||||
$value = null;
|
||||
if ( isset($_POST[$option]) )
|
||||
$value = $_POST[$option];
|
||||
if ( !is_array($value) ) $value = trim($value);
|
||||
$value = stripslashes_deep($value);
|
||||
update_option($option, $value);
|
||||
|
||||
Reference in New Issue
Block a user