Docs: Improve inline comments per the documentation standards.
Includes minor code layout fixes for better readability. See #48303. Built from https://develop.svn.wordpress.org/trunk@47122 git-svn-id: http://core.svn.wordpress.org/trunk@46922 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -64,7 +64,7 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
$this->method = 'ssh2';
|
||||
$this->errors = new WP_Error();
|
||||
|
||||
//Check if possible to use ssh2 functions.
|
||||
// Check if possible to use ssh2 functions.
|
||||
if ( ! extension_loaded( 'ssh2' ) ) {
|
||||
$this->errors->add( 'no_ssh2_ext', __( 'The ssh2 PHP extension is not available' ) );
|
||||
return;
|
||||
@@ -582,7 +582,7 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
* @return bool Whether $file is writable.
|
||||
*/
|
||||
public function is_writable( $file ) {
|
||||
// PHP will base it's writable checks on system_user === file_owner, not ssh_user === file_owner
|
||||
// PHP will base its writable checks on system_user === file_owner, not ssh_user === file_owner.
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -737,7 +737,7 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
$struc['name'] = $entry;
|
||||
|
||||
if ( '.' == $struc['name'] || '..' == $struc['name'] ) {
|
||||
continue; //Do not care about these folders.
|
||||
continue; // Do not care about these folders.
|
||||
}
|
||||
|
||||
if ( ! $include_hidden && '.' == $struc['name'][0] ) {
|
||||
|
||||
Reference in New Issue
Block a user