Changes in trunk/wp-admin/includes/file.php [12152:12310]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/file.php
r12152 r12310 196 196 */ 197 197 function validate_file_to_edit( $file, $allowed_files = '' ) { 198 $file = stripslashes( $file );199 200 198 $code = validate_file( $file, $allowed_files ); 201 199 … … 207 205 wp_die( __('Sorry, can’t edit files with “..” in the name. If you are trying to edit a file in your WordPress home directory, you can just type the name of the file in.' )); 208 206 209 case 2 :210 wp_die( __('Sorry, can’t call files with their real path.' ));207 //case 2 : 208 // wp_die( __('Sorry, can’t call files with their real path.' )); 211 209 212 210 case 3 : … … 739 737 } 740 738 741 if ( defined('FTP_SSH') || (defined('FS_METHOD') && 'ssh' == FS_METHOD) )739 if ( (defined('FTP_SSH') && FTP_SSH) || (defined('FS_METHOD') && 'ssh' == FS_METHOD) ) 742 740 $credentials['connection_type'] = 'ssh'; 743 else if ( defined('FTP_SSL') && 'ftpext' == $type ) //Only the FTP Extension understands SSL741 else if ( (defined('FTP_SSL') && FTP_SSL) && 'ftpext' == $type ) //Only the FTP Extension understands SSL 744 742 $credentials['connection_type'] = 'ftps'; 745 743 else if ( !empty($_POST['connection_type']) ) … … 838 836 <?php 839 837 840 $disabled = defined('FTP_SSL') || defined('FTP_SSH') ? '' : ' disabled="disabled"';838 $disabled = (defined('FTP_SSL') && FTP_SSL) || (defined('FTP_SSH') && FTP_SSH) ? ' disabled="disabled"' : ''; 841 839 842 840 foreach ( $types as $name => $text ) : ?>
Note: See TracChangeset
for help on using the changeset viewer.