From 852e6921d2b3c1e98db3ce8dc256e6dc56099bd4 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Thu, 21 Apr 2016 02:38:29 +0000 Subject: [PATCH] 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 --- wp-admin/includes/class-wp-filesystem-ssh2.php | 11 ++++++----- wp-includes/version.php | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/wp-admin/includes/class-wp-filesystem-ssh2.php b/wp-admin/includes/class-wp-filesystem-ssh2.php index 70f81d056f..158b55598c 100644 --- a/wp-admin/includes/class-wp-filesystem-ssh2.php +++ b/wp-admin/includes/class-wp-filesystem-ssh2.php @@ -193,7 +193,8 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base { * * @param string $command * @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 ) { if ( ! $this->link ) @@ -330,10 +331,10 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base { * * @access public * - * @param string $file Path to the file. - * @param string|int $owner A user name or number. - * @param bool $recursive Optional. If set True changes file owner recursivly. Defaults to False. - * @return bool|string Returns true on success or false on failure. + * @param string $file Path to the file. + * @param string|int $owner A user name or number. + * @param bool $recursive Optional. If set True changes file owner recursivly. Default False. + * @return bool True on success or false on failure. */ public function chown( $file, $owner, $recursive = false ) { if ( ! $this->exists($file) ) diff --git a/wp-includes/version.php b/wp-includes/version.php index 193215cfde..ecc77049c0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @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.