Added textarea rows as configurable option

git-svn-id: http://svn.automattic.com/wordpress/trunk@289 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
mikelittle 2003-08-03 23:45:11 +00:00
parent f0d68c2b0e
commit 24262bb42f
1 changed files with 7 additions and 1 deletions

View File

@ -164,7 +164,13 @@ if ($action != 'editcomment') {
</td>
</tr>
</table>
<textarea rows="9" cols="40" style="width:100%" name="content" tabindex="4" wrap="virtual" id="content"><?php echo $content ?></textarea><br />
<?php
$rows = get_settings('default_post_edit_rows');
if (($rows < 3) || ($rows > 100)) {
$rows = 9;
}
?>
<textarea rows="<?php echo $rows; ?>" cols="40" style="width:100%" name="content" tabindex="4" wrap="virtual" id="content"><?php echo $content ?></textarea><br />
<?php echo $form_pingback ?>
<?php echo $form_prevstatus ?>