diff --git a/wp-admin/optionhandler.php b/wp-admin/optionhandler.php index d8c1be702e..290e0a38fe 100644 --- a/wp-admin/optionhandler.php +++ b/wp-admin/optionhandler.php @@ -10,6 +10,8 @@ require_once('../b2config.php'); function get_option_widget($option_result, $editable, $between) { global $wpdb, $tableoptionvalues; + $disabled = $editable ? '' : 'disabled'; + switch ($option_result->option_type) { case 1: // integer @@ -22,7 +24,7 @@ function get_option_widget($option_result, $editable, $between) $width = $option_result->option_width; return <<$option_result->option_name$between - + TEXTINPUT; //break; } @@ -32,7 +34,7 @@ TEXTINPUT; $false_selected = ($option_result->option_value == 'false') ? 'selected' : ''; return <<$option_result->option_name$between - @@ -43,7 +45,7 @@ BOOLSELECT; { $ret = << +