. */ if ( !$widget_options = get_option( 'dashboard_widget_options' ) ) $widget_options = array(); $id = $_POST['id']; if (!empty($widget_options[$id])) { switch ($_POST['action']) { case 'uwa-set-value': $name = $_POST['name']; $value = $_POST['value']; $widget_options[$id][$name] = $value; $update = true; break; } } if (isset($update) && $update === true) { update_option( 'dashboard_widget_options', $widget_options ); }