Changeset 1355 for trunk/wp-admin/optionhandler.php
- Timestamp:
- 05/24/2004 08:22:18 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/optionhandler.php
r700 r1355 10 10 function get_option_widget($option_result, $editable, $between) 11 11 { 12 global $wpdb , $tableoptionvalues;12 global $wpdb; 13 13 $disabled = $editable ? '' : 'disabled'; 14 14 … … 48 48 49 49 $select = $wpdb->get_results("SELECT optionvalue, optionvalue_desc " 50 ."FROM $ tableoptionvalues "50 ."FROM $wpdb->optionvalues " 51 51 ."WHERE option_id = $option_result->option_id " 52 52 ."ORDER BY optionvalue_seq"); … … 67 67 case 7: // SQL select 68 68 // first get the sql to run 69 $sql = $wpdb->get_var("SELECT optionvalue FROM $ tableoptionvalues WHERE option_id = $option_result->option_id");69 $sql = $wpdb->get_var("SELECT optionvalue FROM $wpdb->optionvalues WHERE option_id = $option_result->option_id"); 70 70 if (!$sql) { 71 71 return $option_result->option_name . $editable; … … 101 101 102 102 function validate_option($option, $name, $val) { 103 global $wpdb , $tableoptionvalues;103 global $wpdb; 104 104 $msg = ''; 105 105 switch ($option->option_type) { 106 106 case 6: // range 107 107 // get range 108 $range = $wpdb->get_row("SELECT optionvalue_max, optionvalue_min FROM $ tableoptionvalues WHERE option_id = $option->option_id");108 $range = $wpdb->get_row("SELECT optionvalue_max, optionvalue_min FROM $wpdb->optionvalues WHERE option_id = $option->option_id"); 109 109 if ($range) { 110 110 if (($val < $range->optionvalue_min) || ($val > $range->optionvalue_max)) {
Note: See TracChangeset
for help on using the changeset viewer.