Ticket #30989: 30989.diff
File 30989.diff, 1.2 KB (added by , 9 years ago) |
---|
-
src/wp-admin/includes/class-wp-filesystem-ssh2.php
193 193 * 194 194 * @param string $command 195 195 * @param bool $returnbool 196 * @return bool|string 196 * @return bool|string True on success, false on failure. String if the command was executed and `$returnbool` 197 * is true and data from the resulting stream was retrieved. 197 198 */ 198 199 public function run_command( $command, $returnbool = false ) { 199 200 if ( ! $this->link ) … … 333 334 * @param string $file Path to the file. 334 335 * @param string|int $owner A user name or number. 335 336 * @param bool $recursive Optional. If set True changes file owner recursivly. Defaults to False. 336 * @return bool|string Returns true on success or false on failure. 337 * @return bool|string Returns true on success or false on failure. String if the command was executed 338 * successfully and data was retrieved from the resulting stream. 337 339 */ 338 340 public function chown( $file, $owner, $recursive = false ) { 339 341 if ( ! $this->exists($file) )