﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
17625	Wordpress can't update itself nor the plugins. Askapache-password-protect	firedev		"    When ask apache is installed Wordpress can't update itself.
    In wp-admin / admin.php there are these lines:

    !defined('FS_CHMOD_DIR') && define('FS_CHMOD_DIR', (S_IRWUGO & ~ umask()));
    !defined('FS_CHMOD_FILE') && define('FS_CHMOD_FILE', (S_IRWXUGO & ~ umask()));

    Which are ok but S_IRWUGO = 0666 and S_IRWXUGO = 0777 so for each files WordPress sets rwxrwxrwx and rw-rw-rw- for folders which is not correct and leads to problems sometimes.

    To fix this change those lines to:

    !defined('FS_CHMOD_DIR') && define('FS_CHMOD_DIR', (S_IRWXUGO & ~ umask()));
    !defined('FS_CHMOD_FILE') && define('FS_CHMOD_FILE', (S_IRWUGO & ~ umask()));

I suggest to include this into the release.
"	defect (bug)	closed	normal		General	3.1.3	major	invalid	has-patch	
