Make WordPress Core

Changeset 289


Ignore:
Timestamp:
08/03/2003 11:45:11 PM (21 years ago)
Author:
mikelittle
Message:

Added textarea rows as configurable option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/b2edit.form.php

    r220 r289  
    165165    </tr>
    166166</table>
    167 <textarea rows="9" cols="40" style="width:100%" name="content" tabindex="4" wrap="virtual" id="content"><?php echo $content ?></textarea><br />
     167<?php
     168 $rows = get_settings('default_post_edit_rows');
     169 if (($rows < 3) || ($rows > 100)) {
     170     $rows = 9;
     171 }
     172?>
     173<textarea rows="<?php echo $rows; ?>" cols="40" style="width:100%" name="content" tabindex="4" wrap="virtual" id="content"><?php echo $content ?></textarea><br />
    168174
    169175<?php echo $form_pingback ?>
Note: See TracChangeset for help on using the changeset viewer.