Make WordPress Core

Ticket #31922: 31922-hostname-placeholder.diff

File 31922-hostname-placeholder.diff, 984 bytes (added by Tmeister, 9 years ago)
  • src/wp-admin/includes/file.php

    diff --git src/wp-admin/includes/file.php src/wp-admin/includes/file.php
    index ba5dc6d..313ec73 100644
    jQuery(function($){ 
    11481148?></p>
    11491149<label for="hostname">
    11501150        <span class="field-title"><?php _e( 'Hostname' ) ?></span>
    1151         <input name="hostname" type="text" id="hostname" aria-describedby="request-filesystem-credentials-desc" class="code" placeholder="<?php esc_attr_e( __( 'example: www.mysite.com' ) ) ?>" value="<?php echo esc_attr($hostname); if ( !empty($port) ) echo ":$port"; ?>"<?php disabled( defined('FTP_HOST') ); ?> />
     1151        <input name="hostname" type="text" id="hostname" aria-describedby="request-filesystem-credentials-desc" class="code" placeholder="<?php esc_attr_e( 'example: www.gnu.org' ) ?>" value="<?php echo esc_attr($hostname); if ( !empty($port) ) echo ":$port"; ?>"<?php disabled( defined('FTP_HOST') ); ?> />
    11521152</label>
    11531153<div class="ftp-username">
    11541154        <label for="username">