Make WordPress Core

Changeset 32962


Ignore:
Timestamp:
06/27/2015 12:42:43 AM (9 years ago)
Author:
wonderboymusic
Message:

In WP_Filesystem_Base::chdir|chgrp|chmod() (all mock abstract methods), modify @return to include string so that subclass @returns match.

See #32444.

File:
1 edited

Legend:

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

    r32924 r32962  
    493493     * @abstract
    494494     * @param string $dir The new current directory.
    495      * @return bool Returns true on success or false on failure.
     495     * @return bool|string
    496496     */
    497497    public function chdir( $dir ) {
     
    507507     * @param mixed  $group     A group name or number.
    508508     * @param bool   $recursive Optional. If set True changes file group recursively. Defaults to False.
    509      * @return bool Returns true on success or false on failure.
     509     * @return bool|string
    510510     */
    511511    public function chgrp( $file, $group, $recursive = false ) {
     
    521521     * @param int    $mode      Optional. The permissions as octal number, usually 0644 for files, 0755 for dirs.
    522522     * @param bool   $recursive Optional. If set True changes file group recursively. Defaults to False.
    523      * @return bool Returns true on success or false on failure.
     523     * @return bool|string
    524524     */
    525525    public function chmod( $file, $mode = false, $recursive = false ) {
Note: See TracChangeset for help on using the changeset viewer.