Make WordPress Core

Ticket #7690: 7690-ports.diff

File 7690-ports.diff, 856 bytes (added by technosailor, 17 years ago)

Allows FTP_PORT to be defined and adds UI for port definition in update screen

  • wp-admin/includes/file.php

     
    551551<td><input name="password" type="password" id="password" value=""<?php if( defined('FTP_PASS') ) echo ' disabled="disabled"' ?> size="40" /><?php if( defined('FTP_PASS') && !empty($password) ) echo '<em>'.__('(Password not shown)').'</em>'; ?></td>
    552552</tr>
    553553<tr valign="top">
     554<th scope="row"><label for="port"><?php _e('Port') ?></label></th>
     555<td><input name="port" type="port" id="port" value="21"<?php if( defined('FTP_PORT') ) echo ' disabled="disabled"' ?> size="5" /></td>
     556</tr>
     557<tr valign="top">
    554558<th scope="row"><?php _e('Connection Type') ?></th>
    555559<td>
    556560<fieldset><legend class="hidden"><?php _e('Connection Type') ?> </legend>