mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Docs: Remove @access notations from method DocBlocks in wp-admin/* classes.
Prior to about 2013, many class methods lacked even access modifiers which made the `@access` notations that much more useful. Now that we've gotten to a point where the codebase is more mature from a maintenance perspective and we can finally remove these notations. Notable exceptions to this change include standalone functions notated as private as well as some classes still considered to represent "private" APIs. See #41452. git-svn-id: https://develop.svn.wordpress.org/trunk@41161 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -36,19 +36,16 @@
|
||||
class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*/
|
||||
public $link = false;
|
||||
|
||||
/**
|
||||
* @access public
|
||||
* @var resource
|
||||
*/
|
||||
public $sftp_link;
|
||||
public $keys = false;
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*
|
||||
* @param array $opt
|
||||
*/
|
||||
@@ -109,7 +106,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
@@ -174,7 +170,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
* this, the path is converted to /./ which is semantically the same as /
|
||||
* See https://bugs.php.net/bug.php?id=64169 for more details.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @since 4.4.0
|
||||
*
|
||||
@@ -189,8 +184,7 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*
|
||||
*
|
||||
* @param string $command
|
||||
* @param bool $returnbool
|
||||
* @return bool|string True on success, false on failure. String if the command was executed, `$returnbool`
|
||||
@@ -222,7 +216,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*
|
||||
* @param string $file
|
||||
* @return string|false
|
||||
@@ -232,7 +225,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*
|
||||
* @param string $file
|
||||
* @return array
|
||||
@@ -242,7 +234,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*
|
||||
* @param string $file
|
||||
* @param string $contents
|
||||
@@ -261,7 +252,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
@@ -274,7 +264,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*
|
||||
* @param string $dir
|
||||
* @return bool|string
|
||||
@@ -284,7 +273,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*
|
||||
* @param string $file
|
||||
* @param string $group
|
||||
@@ -301,7 +289,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*
|
||||
* @param string $file
|
||||
* @param int $mode
|
||||
@@ -329,7 +316,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
/**
|
||||
* Change the ownership of a file / folder.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param string $file Path to the file.
|
||||
* @param string|int $owner A user name or number.
|
||||
@@ -345,7 +331,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*
|
||||
* @param string $file
|
||||
* @return string|false
|
||||
@@ -361,7 +346,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*
|
||||
* @param string $file
|
||||
* @return string
|
||||
@@ -371,7 +355,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*
|
||||
* @param string $file
|
||||
* @return string|false
|
||||
@@ -387,7 +370,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*
|
||||
* @param string $source
|
||||
* @param string $destination
|
||||
@@ -405,7 +387,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*
|
||||
* @param string $source
|
||||
* @param string $destination
|
||||
@@ -417,7 +398,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*
|
||||
* @param string $file
|
||||
* @param bool $recursive
|
||||
@@ -439,7 +419,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*
|
||||
* @param string $file
|
||||
* @return bool
|
||||
@@ -449,7 +428,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*
|
||||
* @param string $file
|
||||
* @return bool
|
||||
@@ -459,7 +437,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*
|
||||
* @param string $path
|
||||
* @return bool
|
||||
@@ -469,7 +446,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*
|
||||
* @param string $file
|
||||
* @return bool
|
||||
@@ -479,7 +455,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*
|
||||
* @param string $file
|
||||
* @return bool
|
||||
@@ -490,7 +465,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*
|
||||
* @param string $file
|
||||
* @return int
|
||||
@@ -500,7 +474,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*
|
||||
* @param string $file
|
||||
* @return int
|
||||
@@ -510,7 +483,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*
|
||||
* @param string $file
|
||||
* @return int
|
||||
@@ -520,7 +492,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*
|
||||
* @param string $file
|
||||
* @param int $time
|
||||
@@ -531,7 +502,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*
|
||||
* @param string $path
|
||||
* @param mixed $chmod
|
||||
@@ -556,7 +526,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*
|
||||
* @param string $path
|
||||
* @param bool $recursive
|
||||
@@ -567,7 +536,6 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*
|
||||
* @param string $path
|
||||
* @param bool $include_hidden
|
||||
|
||||
Reference in New Issue
Block a user