[wp-testers] Problem with automatic upgrade

Stefano Aglietti steagl4ml at gmail.com
Tue Dec 2 06:17:30 GMT 2008


On Tue, 02 Dec 2008 11:27:11 +1100, DD32 <wordpress at dd32.id.au> wrote:


>Basing it off wp-config.php would be a bad idea, since many people chmod  
>777 that thing (for no good reason), Basing the chmod off the current  
>wp-settings & wp-includes might be an idea..
>
>Eg, A combination:
>
>if ( !defined('FS_CHMOD_FILES') )
>define('FS_CHMOD_FILES', $wp_filesystem->getchmod('wp-settings.php'));
>if ( !defined('FS_CHMOD_DIRS') )
>define('FS_CHMOD_DIRS', $wp_filesystem->getchmod('wp-includes'));
>
>(Note: thats not 100% right code, it'll need some extra paths and whatnot)
>
>Sound like that would be a good approach? If so, i'll whip up a patch  
>later.

Sound good to me... if can be put into trunk before the release (maybe
there will be a RC2) we will test it.

-- 

Stefano Aglietti - StallonIt on IRCnet - ICQ#: 2078431
Email: steve at 40annibuttati.it steagl at people.it
Sites: http://www.40annibuttati.it (personal blog)
       http://www.wordpress-it.it (WordPress Italia)


More information about the wp-testers mailing list