Ticket #2868: options.php.diff
| File options.php.diff, 1.1 kB (added by filosofo, 2 years ago) |
|---|
-
wp-admin/options.php
old new 33 33 34 34 if (!$_POST['page_options']) { 35 35 foreach ($_POST as $key => $value) { 36 $options[] = $key;36 if ($_POST['checkbox_' . $key]) $options[] = $key; 37 37 } 38 38 } else { 39 39 $options = explode(',', stripslashes($_POST['page_options'])); … … 100 100 echo " 101 101 <tr> 102 102 <th scope='row'><label for='$option->option_name'>$option->option_name</label></th> 103 <td><input type='checkbox' name='checkbox_$option->option_name' id='checkbox_$option->option_name' value='true' /></td> 103 104 <td><input type='text' name='$option->option_name' id='$option->option_name' size='30' value='" . $value . "' /></td> 104 105 <td>$option->option_description</td> 105 106 </tr>"; 106 107 endforeach; 107 108 ?> 108 109 </table> 109 <p class="submit"><input type="submit" name="Update" value="<?php _e('Update Settings »') ?>" /></p>110 <p class="submit"><input type="submit" name="Update" value="<?php _e('Update Checked Settings »') ?>" /></p> 110 111 </form> 111 112 </div> 112 113
