Changeset 5832 for trunk/wp-admin/options.php
- Timestamp:
- 08/01/2007 07:24:51 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/options.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options.php
r5700 r5832 57 57 foreach ( (array) $options as $option) : 58 58 $disabled = ''; 59 $option->option_name = attribute_escape($option->option_name); 59 60 if ( is_serialized($option->option_value) ) { 60 61 if ( is_serialized_string($option->option_value) ) { 61 62 // this is a serialized string, so we should display it 62 $value = wp_specialchars(maybe_unserialize($option->option_value), 'single');63 $value = maybe_unserialize($option->option_value); 63 64 $options_to_update[] = $option->option_name; 64 65 $class = 'all-options'; … … 69 70 } 70 71 } else { 71 $value = wp_specialchars($option->option_value, 'single');72 $value = $option->option_value; 72 73 $options_to_update[] = $option->option_name; 73 74 $class = 'all-options'; … … 78 79 <td>"; 79 80 80 if (strpos($value, "\n") !== false) echo "<textarea class='$class' name='$option->option_name' id='$option->option_name' cols='30' rows='5'> $value</textarea>";81 else echo "<input class='$class' type='text' name='$option->option_name' id='$option->option_name' size='30' value='" . $value. "'$disabled />";81 if (strpos($value, "\n") !== false) echo "<textarea class='$class' name='$option->option_name' id='$option->option_name' cols='30' rows='5'>" . wp_specialchars($value) . "</textarea>"; 82 else echo "<input class='$class' type='text' name='$option->option_name' id='$option->option_name' size='30' value='" . attribute_escape($value) . "'$disabled />"; 82 83 83 84 echo "</td> … … 88 89 </table> 89 90 <?php $options_to_update = implode(',', $options_to_update); ?> 90 <p class="submit"><input type="hidden" name="page_options" value="<?php echo attribute_escape($options_to_update); ?>" /><input type="submit" name="Update" value="<?php _e('Update Options »') ?>" /></p>91 <p class="submit"><input type="hidden" name="page_options" value="<?php echo $options_to_update; ?>" /><input type="submit" name="Update" value="<?php _e('Update Options »') ?>" /></p> 91 92 </form> 92 93 </div>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)