WordPress.org

Make WordPress Core

Ticket #40369: 40369.patch

File 40369.patch, 1.7 KB (added by subrataemfluence, 4 years ago)
  • .php

    old new  
    127127<table class="form-table">
    128128<tr>
    129129<th scope="row"><label for="mailserver_url"><?php _e('Mail Server') ?></label></th>
    130 <td><input name="mailserver_url" type="text" id="mailserver_url" value="<?php form_option('mailserver_url'); ?>" class="regular-text code" />
     130<td><input name="mailserver_url" required type="text" id="mailserver_url" value="<?php form_option('mailserver_url'); ?>" class="regular-text code" />
    131131<label for="mailserver_port"><?php _e('Port') ?></label>
    132 <input name="mailserver_port" type="text" id="mailserver_port" value="<?php form_option('mailserver_port'); ?>" class="small-text" />
     132<input name="mailserver_port" required type="number" id="mailserver_port" value="<?php form_option('mailserver_port'); ?>" class="small-text" />
    133133</td>
    134134</tr>
    135135<tr>
    136136<th scope="row"><label for="mailserver_login"><?php _e('Login Name') ?></label></th>
    137 <td><input name="mailserver_login" type="text" id="mailserver_login" value="<?php form_option('mailserver_login'); ?>" class="regular-text ltr" /></td>
     137<td><input name="mailserver_login" required type="email" id="mailserver_login" value="<?php form_option('mailserver_login'); ?>" class="regular-text ltr" /></td>
    138138</tr>
    139139<tr>
    140140<th scope="row"><label for="mailserver_pass"><?php _e('Password') ?></label></th>
    141141<td>
    142 <input name="mailserver_pass" type="text" id="mailserver_pass" value="<?php form_option('mailserver_pass'); ?>" class="regular-text ltr" />
     142<input name="mailserver_pass" required type="password" id="mailserver_pass" value="<?php form_option('mailserver_pass'); ?>" class="regular-text ltr" />
    143143</td>
    144144</tr>
    145145<tr>