Changeset 5834
- Timestamp:
- 08/01/2007 07:25:33 PM (19 years ago)
- File:
-
- 1 edited
-
branches/2.0/wp-admin/options.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/wp-admin/options.php
r4656 r5834 152 152 foreach ( (array) $options as $option) : 153 153 $disabled = ''; 154 $option->option_name = attribute_escape($option->option_name); 154 155 if ( is_serialized($option->option_value) ) { 155 156 if ( is_serialized_string($option->option_value) ) { 156 157 // this is a serialized string, so we should display it 157 $value = wp_specialchars(maybe_unserialize($option->option_value), 'single');158 $value = maybe_unserialize($option->option_value); 158 159 $options_to_update[] = $option->option_name; 159 160 $class = 'all-options'; … … 164 165 } 165 166 } else { 166 $value = wp_specialchars($option->option_value, 'single');167 $value = $option->option_value; 167 168 $options_to_update[] = $option->option_name; 168 169 $class = 'all-options'; … … 173 174 <td>"; 174 175 175 if (str istr($value, "\n")) echo "<textarea class='$class' name='$option->option_name' id='$option->option_name' cols='30' rows='5'>$value</textarea>";176 else echo "<input class='$class' type='text' name='$option->option_name' id='$option->option_name' size='30' value='" . $value. "'$disabled />";177 176 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>"; 177 else echo "<input class='$class' type='text' name='$option->option_name' id='$option->option_name' size='30' value='" . attribute_escape($value) . "'$disabled />"; 178 178 179 echo "</td> 179 180 <td>$option->option_description</td> … … 183 184 </table> 184 185 <?php $options_to_update = implode(',', $options_to_update); ?> 185 <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>186 <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> 186 187 </form> 187 188 </div>
Note: See TracChangeset
for help on using the changeset viewer.