Make WordPress Core

Ticket #8794: wordpress-automatical-upgrade-does-not-choose-direct-method.patch

File wordpress-automatical-upgrade-does-not-choose-direct-method.patch, 453 bytes (added by vilhelmk, 15 years ago)
  • wp-admin/includes/file.php

     
    627627                $temp_file = wp_tempnam();
    628628                if ( getmyuid() == fileowner($temp_file) )
    629629                        $method = 'direct';
     630                elseif ( fileperms($temp_file) & 0x0010 && getmygid() == filegroup($temp_file) )
     631                        $method = 'direct';
    630632                unlink($temp_file);
    631633        }
    632634