WordPress.org

Make WordPress Core

Ticket #42227: 42227-2.patch

File 42227-2.patch, 2.0 KB (added by man4toman, 7 months ago)
  • wp-admin/includes/class-wp-filesystem-base.php

     
    8888         *
    8989         * @since 2.7.0
    9090         *
    91          * @param string $theme The Theme stylesheet or template for the directory.
     91         * @param string|false $theme The Theme stylesheet or template for the directory.
    9292         * @return string The location of the remote path.
    9393         */
    9494        public function wp_themes_dir( $theme = false ) {
     
    490490         *
    491491         * @param string $file     Remote path to the file where to write the data.
    492492         * @param string $contents The data to write.
    493          * @param int    $mode     Optional. The file permissions as octal number, usually 0644.
     493         * @param int|false    $mode     Optional. The file permissions as octal number, usually 0644.
     494         *
    494495         * @return bool False on failure.
    495496         */
    496497        public function put_contents( $file, $contents, $mode = false ) {
     
    544545         * @abstract
    545546         *
    546547         * @param string $file      Path to the file.
    547          * @param int    $mode      Optional. The permissions as octal number, usually 0644 for files, 0755 for dirs.
     548         * @param int|false   $mode      Optional. The permissions as octal number, usually 0644 for files, 0755 for dirs.
    548549         * @param bool   $recursive Optional. If set True changes file group recursively. Defaults to False.
    549550         * @return bool|string
    550551         */
     
    588589         * @param string $destination Path to the destination file.
    589590         * @param bool   $overwrite   Optional. Whether to overwrite the destination file if it exists.
    590591         *                            Default false.
    591          * @param int    $mode        Optional. The permissions as octal number, usually 0644 for files, 0755 for dirs.
     592         * @param int|false   $mode        Optional. The permissions as octal number, usually 0644 for files, 0755 for dirs.
    592593         *                            Default false.
    593594         * @return bool True if file copied successfully, False otherwise.
    594595         */