Make WordPress Core

Ticket #30989: 30989.diff

File 30989.diff, 1.2 KB (added by DrewAPicture, 8 years ago)

ssh2 chown() and run_command()

  • src/wp-admin/includes/class-wp-filesystem-ssh2.php

     
    193193         *
    194194         * @param string $command
    195195         * @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.
    197198         */
    198199        public function run_command( $command, $returnbool = false ) {
    199200                if ( ! $this->link )
     
    333334         * @param string     $file    Path to the file.
    334335         * @param string|int $owner   A user name or number.
    335336         * @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.
    337339         */
    338340        public function chown( $file, $owner, $recursive = false ) {
    339341                if ( ! $this->exists($file) )