[wp-trac] [WordPress Trac] #18725: Wordpress Auto-Update - FTP: FAILURE
WordPress Trac
wp-trac at lists.automattic.com
Tue Sep 20 16:08:57 UTC 2011
#18725: Wordpress Auto-Update - FTP: FAILURE
-----------------------------+-----------------------------
Reporter: href | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upgrade/Install | Version: 3.2
Severity: normal | Keywords:
-----------------------------+-----------------------------
'''FS_CHMOD_FILE and FS_CHMOD_DIR empty! in: /wp-admin/includes/class-wp-
filesystem-ftpext.php'''
{{{
function chmod($file, $mode = false, $recursive = false) {
if ( ! $mode ) {
if ( $this->is_file($file) )
$mode = FS_CHMOD_FILE;
elseif ( $this->is_dir($file) )
$mode = FS_CHMOD_DIR;
else
return false;
}
}}}
'''FIX:'''[taken from:'/wp-admin/includes/file.php']
{{{
// Set the permission constants if not already set.
if ( ! defined('FS_CHMOD_DIR') )
define('FS_CHMOD_DIR', 0755 );
if ( ! defined('FS_CHMOD_FILE') )
define('FS_CHMOD_FILE', 0644 );
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18725>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list