Added textarea rows as configurable option

git-svn-id: https://develop.svn.wordpress.org/trunk@289 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mike Little 2003-08-03 23:45:11 +00:00
parent 644c5d0ffb
commit fa6f874c3a
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 ?>