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 , 16 years ago) |
---|
-
wp-admin/includes/file.php
627 627 $temp_file = wp_tempnam(); 628 628 if ( getmyuid() == fileowner($temp_file) ) 629 629 $method = 'direct'; 630 elseif ( fileperms($temp_file) & 0x0010 && getmygid() == filegroup($temp_file) ) 631 $method = 'direct'; 630 632 unlink($temp_file); 631 633 } 632 634