mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-23 06:55:28 +00:00
preserve multi-line options in options.php. Props Viper007Bond. fixes #2456
git-svn-id: http://svn.automattic.com/wordpress/trunk@4330 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b869fd07f8
commit
3c6648e96c
@ -116,7 +116,7 @@ default:
|
|||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php _e('All options'); ?></h2>
|
<h2><?php _e('All options'); ?></h2>
|
||||||
<form name="form" action="options.php" method="post">
|
<form name="form" action="options.php" method="post" id="all-options">
|
||||||
<?php wp_nonce_field('update-options') ?>
|
<?php wp_nonce_field('update-options') ?>
|
||||||
<input type="hidden" name="action" value="update" />
|
<input type="hidden" name="action" value="update" />
|
||||||
<table width="98%">
|
<table width="98%">
|
||||||
@ -128,7 +128,12 @@ foreach ($options as $option) :
|
|||||||
echo "
|
echo "
|
||||||
<tr>
|
<tr>
|
||||||
<th scope='row'><label for='$option->option_name'>$option->option_name</label></th>
|
<th scope='row'><label for='$option->option_name'>$option->option_name</label></th>
|
||||||
<td><input type='text' name='$option->option_name' id='$option->option_name' size='30' value='" . $value . "' /></td>
|
<td>";
|
||||||
|
|
||||||
|
if (stristr($value, "\n")) echo "<textarea name='$option->option_name' id='$option->option_name' cols='30' rows='5'>$value</textarea>";
|
||||||
|
else echo "<input type='text' name='$option->option_name' id='$option->option_name' size='30' value='" . $value . "' />";
|
||||||
|
|
||||||
|
echo "</td>
|
||||||
<td>$option->option_description</td>
|
<td>$option->option_description</td>
|
||||||
</tr>";
|
</tr>";
|
||||||
endforeach;
|
endforeach;
|
||||||
|
@ -400,6 +400,10 @@ table .vers {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#all-options textarea, #all-options input {
|
||||||
|
width: 250px;
|
||||||
|
}
|
||||||
|
|
||||||
#adminmenu {
|
#adminmenu {
|
||||||
background: #83B4D8;
|
background: #83B4D8;
|
||||||
border-top: 3px solid #448abd;
|
border-top: 3px solid #448abd;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user