Make WordPress Core

Changeset 37270


Ignore:
Timestamp:
04/21/2016 02:37:36 AM (8 years ago)
Author:
DrewAPicture
Message:

Docs: Add missing return descriptions for WP_Filesystem_SSH2::chown() and WP_Filesystem_SSH2::run_command().

Fixes #30989.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-filesystem-ssh2.php

    r36670 r37270  
    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, `$returnbool`
     197     *                     is false (default), and data from the resulting stream was retrieved.
    197198     */
    198199    public function run_command( $command, $returnbool = false ) {
     
    331332     * @access public
    332333     *
    333      * @param string     $file    Path to the file.
    334      * @param string|int $owner   A user name or number.
    335      * @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.
     334     * @param string     $file      Path to the file.
     335     * @param string|int $owner     A user name or number.
     336     * @param bool       $recursive Optional. If set True changes file owner recursivly. Default False.
     337     * @return bool True on success or false on failure.
    337338     */
    338339    public function chown( $file, $owner, $recursive = false ) {
Note: See TracChangeset for help on using the changeset viewer.