Changeset 43569 for trunk/src/wp-admin/includes/file.php
- Timestamp:
- 08/15/2018 06:22:00 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/file.php
r43568 r43569 1818 1818 _e( 'If you do not remember your credentials, you should contact your web host.' ); 1819 1819 1820 $hostname_value = esc_attr( $hostname ); 1821 if ( ! empty( $port ) ) { 1822 $hostname_value .= ":$port"; 1823 } 1824 1820 1825 $password_value = ''; 1821 if ( defined( 'FTP_PASS' ) ) {1822 $password_value = '*****';1823 }1826 if ( defined( 'FTP_PASS' ) ) { 1827 $password_value = '*****'; 1828 } 1824 1829 ?> 1825 1830 </p> 1826 1831 <label for="hostname"> 1827 1832 <span class="field-title"><?php _e( 'Hostname' ); ?></span> 1828 <input name="hostname" type="text" id="hostname" aria-describedby="request-filesystem-credentials-desc" class="code" placeholder="<?php esc_attr_e( 'example: www.wordpress.org' ); ?>" value=" 1829 <?php 1830 echo esc_attr( $hostname ); 1831 if ( ! empty( $port ) ) { 1832 echo ":$port";} 1833 ?> 1834 "<?php disabled( defined( 'FTP_HOST' ) ); ?> /> 1833 <input name="hostname" type="text" id="hostname" aria-describedby="request-filesystem-credentials-desc" class="code" placeholder="<?php esc_attr_e( 'example: www.wordpress.org' ); ?>" value="<?php echo $hostname_value; ?>"<?php disabled( defined( 'FTP_HOST' ) ); ?> /> 1835 1834 </label> 1836 1835 <div class="ftp-username"> … … 1859 1858 ?> 1860 1859 <label for="<?php echo esc_attr( $name ); ?>"> 1861 <input type="radio" name="connection_type" id="<?php echo esc_attr( $name ); ?>" value="<?php echo esc_attr( $name ); ?>" 1862 <?php 1863 checked( $name, $connection_type ); 1864 echo $disabled; 1865 ?> 1866 /> 1860 <input type="radio" name="connection_type" id="<?php echo esc_attr( $name ); ?>" value="<?php echo esc_attr( $name ); ?>" <?php checked( $name, $connection_type ); ?> <?php echo $disabled; ?> /> 1867 1861 <?php echo $text; ?> 1868 1862 </label>
Note: See TracChangeset
for help on using the changeset viewer.