More phpdoc typo fixes. See #17414 props Utkarsh
git-svn-id: http://svn.automattic.com/wordpress/trunk@17926 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
65e341d0cb
commit
53ce9d6f50
|
@ -21,7 +21,7 @@ class WP_Filesystem_Base {
|
||||||
*/
|
*/
|
||||||
var $verbose = false;
|
var $verbose = false;
|
||||||
/**
|
/**
|
||||||
* Cached list of local filepaths to maped remote filepaths.
|
* Cached list of local filepaths to mapped remote filepaths.
|
||||||
*
|
*
|
||||||
* @since 2.7
|
* @since 2.7
|
||||||
* @access private
|
* @access private
|
||||||
|
@ -215,14 +215,14 @@ class WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Only check this as a last resort, to prevent locating the incorrect install. All above proceeedures will fail quickly if this is the right branch to take.
|
//Only check this as a last resort, to prevent locating the incorrect install. All above procedures will fail quickly if this is the right branch to take.
|
||||||
if (isset( $files[ $last_path ] ) ) {
|
if (isset( $files[ $last_path ] ) ) {
|
||||||
if ( $this->verbose )
|
if ( $this->verbose )
|
||||||
printf( __('Found %s') . '<br/>', $base . $last_path );
|
printf( __('Found %s') . '<br/>', $base . $last_path );
|
||||||
return trailingslashit($base . $last_path);
|
return trailingslashit($base . $last_path);
|
||||||
}
|
}
|
||||||
if ( $loop )
|
if ( $loop )
|
||||||
return false; //Prevent tihs function looping again.
|
return false; //Prevent this function from looping again.
|
||||||
//As an extra last resort, Change back to / if the folder wasnt found. This comes into effect when the CWD is /home/user/ but WP is at /var/www/.... mainly dedicated setups.
|
//As an extra last resort, Change back to / if the folder wasnt found. This comes into effect when the CWD is /home/user/ but WP is at /var/www/.... mainly dedicated setups.
|
||||||
return $this->search_for_folder($folder, '/', true);
|
return $this->search_for_folder($folder, '/', true);
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||||
/**
|
/**
|
||||||
* constructor
|
* constructor
|
||||||
*
|
*
|
||||||
* @param mixed $arg ingored argument
|
* @param mixed $arg ignored argument
|
||||||
*/
|
*/
|
||||||
function __construct($arg) {
|
function __construct($arg) {
|
||||||
$this->method = 'direct';
|
$this->method = 'direct';
|
||||||
|
@ -222,7 +222,7 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||||
function delete($file, $recursive = false, $type = false) {
|
function delete($file, $recursive = false, $type = false) {
|
||||||
if ( empty($file) ) //Some filesystems report this as /, which can cause non-expected recursive deletion of all files in the filesystem.
|
if ( empty($file) ) //Some filesystems report this as /, which can cause non-expected recursive deletion of all files in the filesystem.
|
||||||
return false;
|
return false;
|
||||||
$file = str_replace('\\', '/', $file); //for win32, occasional problems deleteing files otherwise
|
$file = str_replace('\\', '/', $file); //for win32, occasional problems deleting files otherwise
|
||||||
|
|
||||||
if ( 'f' == $type || $this->is_file($file) )
|
if ( 'f' == $type || $this->is_file($file) )
|
||||||
return @unlink($file);
|
return @unlink($file);
|
||||||
|
|
Loading…
Reference in New Issue