WordPress.org

Make WordPress Core

Ticket #17863: options-writing.diff

File options-writing.diff, 1.3 KB (added by kovshenin, 6 years ago)

What about options-writing.php?

  • options-writing.php

     
    7171<table class="form-table">
    7272<tr valign="top">
    7373<th scope="row"><label for="default_post_edit_rows"> <?php _e('Size of the post box') ?></label></th>
    74 <td><input name="default_post_edit_rows" type="text" id="default_post_edit_rows" value="<?php form_option('default_post_edit_rows'); ?>" class="small-text" />
     74<td><input name="default_post_edit_rows" type="number" step="1" min="5" id="default_post_edit_rows" value="<?php form_option('default_post_edit_rows'); ?>" class="small-text" />
    7575<?php _e('lines') ?></td>
    7676</tr>
    7777<tr valign="top">
     
    138138<th scope="row"><label for="mailserver_url"><?php _e('Mail Server') ?></label></th>
    139139<td><input name="mailserver_url" type="text" id="mailserver_url" value="<?php form_option('mailserver_url'); ?>" class="regular-text code" />
    140140<label for="mailserver_port"><?php _e('Port') ?></label>
    141 <input name="mailserver_port" type="text" id="mailserver_port" value="<?php form_option('mailserver_port'); ?>" class="small-text" />
     141<input name="mailserver_port" type="number" step="1" min="1" id="mailserver_port" value="<?php form_option('mailserver_port'); ?>" class="small-text" />
    142142</td>
    143143</tr>
    144144<tr valign="top">