Changeset 869
- Timestamp:
- 02/13/04 09:59:47 (5 years ago)
- Files:
-
- trunk/wp-admin/admin-functions.php (modified) (1 diff)
- trunk/wp-admin/edit-form-advanced.php (modified) (1 diff)
- trunk/wp-admin/edit-form.php (modified) (1 diff)
- trunk/wp-admin/menu.txt (modified) (1 diff)
- trunk/wp-admin/options-general.php (added)
- trunk/wp-admin/options.php (modified) (4 diffs)
- trunk/wp-admin/upgrade-functions.php (modified) (2 diffs)
- trunk/wp-admin/wp-admin.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/admin-functions.php
r849 r869 1 1 <?php 2 3 function selected($selected, $current) { 4 if ($selected == $current) echo ' selected="selected"'; 5 } 6 7 function checked($checked, $current) { 8 if ($checked == $current) echo ' checked="checked"'; 9 } 2 10 3 11 function get_nested_categories($default = 0) { trunk/wp-admin/edit-form-advanced.php
r831 r869 4 4 5 5 $allowed_users = explode(" ", trim($fileupload_allowedusers)); 6 7 function selected($selected, $current) {8 if ($selected == $current) echo ' selected="selected"';9 }10 11 function checked($checked, $current) {12 if ($checked == $current) echo ' checked="checked"';13 }14 15 6 16 7 $submitbutton_text = 'Save'; trunk/wp-admin/edit-form.php
r831 r869 4 4 5 5 $allowed_users = explode(" ", trim($fileupload_allowedusers)); 6 7 function selected($selected, $current) {8 if ($selected == $current) echo ' selected="selected"';9 }10 11 function checked($checked, $current) {12 if ($checked == $current) echo ' checked="checked"';13 }14 6 15 7 $submitbutton_text = 'Blog this!'; trunk/wp-admin/menu.txt
r831 r869 4 4 5 link-manager.php Links 5 5 3 users.php Users 6 4 options .php Options6 4 options-general.php Options 7 7 4 templates.php Templates 8 8 5 upload.php Upload trunk/wp-admin/options.php
r641 r869 54 54 // validate ranges etc. 55 55 // update the values 56 $options = $wpdb->get_results("SELECT $tableoptions.option_id, option_name, option_type, option_value, option_admin_level " 57 . "FROM $tableoptions " 58 . "LEFT JOIN $tableoptiongroup_options ON $tableoptions.option_id = $tableoptiongroup_options.option_id " 59 . "WHERE group_id = $option_group_id " 60 . "ORDER BY seq"); 56 foreach ($_POST as $key => $value) { 57 $option_names[] = "'$key'"; 58 } 59 $option_names = implode(',', $option_names); 60 61 $options = $wpdb->get_results("SELECT $tableoptions.option_id, option_name, option_type, option_value, option_admin_level FROM $tableoptions WHERE option_name IN ($option_names)"); 61 62 if ($options) { 62 63 foreach ($options as $option) { … … 65 66 $this_name = $option->option_name; 66 67 $old_val = stripslashes($option->option_value); 67 $new_val = $ HTTP_POST_VARS[$this_name];68 $new_val = $_POST[$this_name]; 68 69 69 70 if ($new_val != $old_val) { … … 98 99 $message .= $dB_errors . '<br />' . $validation_message; 99 100 } 100 101 //break; //fall through101 header('Location: ' . $_SERVER['HTTP_REFERER']); 102 break; 102 103 103 104 default: … … 136 137 ?> 137 138 <ul id="adminmenu2"> 139 <li><a href="options-general.php">General</a></li> 138 140 <?php 139 141 //Iterate through the available option groups. trunk/wp-admin/upgrade-functions.php
r863 r869 674 674 675 675 function upgrade_110() { 676 global $wpdb, $tableusers, $tablecomments, $tableposts ;676 global $wpdb, $tableusers, $tablecomments, $tableposts, $tableoptiongroups; 677 677 678 678 maybe_add_column($tablecomments, 'user_id', "ALTER TABLE `$tablecomments` ADD `user_id` INT DEFAULT '0' NOT NULL ;"); … … 705 705 } 706 706 } 707 708 $wpdb->query("DELETE FROM $tableoptiongroups WHERE group_id = 6"); 707 709 } 708 710 trunk/wp-admin/wp-admin.css
r864 r869 122 122 margin: 0; 123 123 padding: 0; 124 } 125 126 .editform th { 127 text-align: right; 128 } 129 130 .code { 131 font-family: "Courier New", Courier, mono; 124 132 } 125 133
