Make WordPress Core

Ticket #46779: 46779.diff

File 46779.diff, 1.4 KB (added by mukesh27, 5 years ago)

Updated patch with one correction

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

    diff --git a/wp-admin/includes/class-wp-filesystem-base.php b/wp-admin/includes/class-wp-filesystem-base.php
    index c518408ec9..e46a4c1370 100644
    a b class WP_Filesystem_Base { 
    267267                        /*
    268268                         * Working from /home/ to /user/ to /wordpress/ see if that file exists within
    269269                         * the current folder, If it's found, change into it and follow through looking
    270                          * for it. If it cant find WordPress down that route, it'll continue onto the next
     270                         * for it. If it can't find WordPress down that route, it'll continue onto the next
    271271                         * folder level, and see if that matches, and so on. If it reaches the end, and still
    272                          * cant find it, it'll return false for the entire function.
     272                         * can't find it, it'll return false for the entire function.
    273273                         */
    274274                        if ( isset( $files[ $key ] ) ) {
    275275
    class WP_Filesystem_Base { 
    437437         *
    438438         * @param string $file      Path to the file.
    439439         * @param mixed  $owner     A user name or number.
    440          * @param bool   $recursive Optional. If set True changes file owner recursivly. Defaults to False.
     440         * @param bool   $recursive Optional. If set True changes file owner recursively. Defaults to False.
    441441         * @return bool Returns true on success or false on failure.
    442442         */
    443443        public function chown( $file, $owner, $recursive = false ) {