WordPress.org

Make WordPress Core

Ticket #42227: 42227.patch

File 42227.patch, 2.2 KB (added by Jaydeep Rami, 2 years ago)

Fixed: PHPDoc correction for src/wp-admin/includes/class-wp-filesystem-base.php

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

     
    8787         *
    8888         * @since 2.7.0
    8989         *
    90          * @param string $theme The Theme stylesheet or template for the directory.
     90         * @param bool $theme The Theme stylesheet or template for the directory.
     91         *
    9192         * @return string The location of the remote path.
    9293         */
    9394        public function wp_themes_dir( $theme = false ) {
     
    472473         *
    473474         * @param string $file     Remote path to the file where to write the data.
    474475         * @param string $contents The data to write.
    475          * @param int    $mode     Optional. The file permissions as octal number, usually 0644.
     476         * @param bool   $mode     Optional. The file permissions as octal number, usually 0644.
     477         *
    476478         * @return bool False on failure.
    477479         */
    478480        public function put_contents( $file, $contents, $mode = false ) {
     
    526528         * @abstract
    527529         *
    528530         * @param string $file      Path to the file.
    529          * @param int    $mode      Optional. The permissions as octal number, usually 0644 for files, 0755 for dirs.
     531         * @param bool   $mode      Optional. The permissions as octal number, usually 0644 for files, 0755 for dirs.
    530532         * @param bool   $recursive Optional. If set True changes file group recursively. Defaults to False.
     533         *
    531534         * @return bool|string
    532535         */
    533536        public function chmod( $file, $mode = false, $recursive = false ) {
     
    570573         * @param string $destination Path to the destination file.
    571574         * @param bool   $overwrite   Optional. Whether to overwrite the destination file if it exists.
    572575         *                            Default false.
    573          * @param int    $mode        Optional. The permissions as octal number, usually 0644 for files, 0755 for dirs.
     576         * @param bool   $mode        Optional. The permissions as octal number, usually 0644 for files, 0755 for dirs.
    574577         *                            Default false.
     578         *
    575579         * @return bool True if file copied successfully, False otherwise.
    576580         */
    577581        public function copy( $source, $destination, $overwrite = false, $mode = false ) {