Docs: Add missing return descriptions for `WP_Filesystem_SSH2::chown()` and `WP_Filesystem_SSH2::run_command()`.
Fixes #30989. Built from https://develop.svn.wordpress.org/trunk@37270 git-svn-id: http://core.svn.wordpress.org/trunk@37236 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bfaad85d86
commit
852e6921d2
|
@ -193,7 +193,8 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||||
*
|
*
|
||||||
* @param string $command
|
* @param string $command
|
||||||
* @param bool $returnbool
|
* @param bool $returnbool
|
||||||
* @return bool|string
|
* @return bool|string True on success, false on failure. String if the command was executed, `$returnbool`
|
||||||
|
* is false (default), and data from the resulting stream was retrieved.
|
||||||
*/
|
*/
|
||||||
public function run_command( $command, $returnbool = false ) {
|
public function run_command( $command, $returnbool = false ) {
|
||||||
if ( ! $this->link )
|
if ( ! $this->link )
|
||||||
|
@ -332,8 +333,8 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||||
*
|
*
|
||||||
* @param string $file Path to the file.
|
* @param string $file Path to the file.
|
||||||
* @param string|int $owner A user name or number.
|
* @param string|int $owner A user name or number.
|
||||||
* @param bool $recursive Optional. If set True changes file owner recursivly. Defaults to False.
|
* @param bool $recursive Optional. If set True changes file owner recursivly. Default False.
|
||||||
* @return bool|string Returns true on success or false on failure.
|
* @return bool True on success or false on failure.
|
||||||
*/
|
*/
|
||||||
public function chown( $file, $owner, $recursive = false ) {
|
public function chown( $file, $owner, $recursive = false ) {
|
||||||
if ( ! $this->exists($file) )
|
if ( ! $this->exists($file) )
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.6-alpha-37269';
|
$wp_version = '4.6-alpha-37270';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue