[wp-trac] [WordPress Trac] #10369: ftp upgrade fails when hosting uses different paths for php and ftp access
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 9 23:16:50 UTC 2009
#10369: ftp upgrade fails when hosting uses different paths for php and ftp access
-----------------------------+----------------------------------------------
Reporter: arekm | Owner: dd32
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Upgrade/Install | Version: 2.8
Severity: normal | Keywords:
-----------------------------+----------------------------------------------
Changes (by dd32):
* version: => 2.8
* milestone: Unassigned => Future Release
Comment:
In that setup, I dont think its possible to deal with it on a PHP-level,
The searching would have to be rather complex.
You'd be better off defining the constants to override it.
Constants are:
{{{
$constant_overrides = array( 'FTP_BASE' => ABSPATH, 'FTP_CONTENT_DIR' =>
WP_CONTENT_DIR, 'FTP_PLUGIN_DIR' => WP_PLUGIN_DIR );
}}}
so:
{{{
define('FTP_BASE', '/mysuperpage.com/');
define('FTP_CONTENT_DIR', '/mysuperpage.com/wp-content/');
define('FTP_PLUGIN_DIR', '/mysuperpage.com/wp-content/plugins/');
}}}
I'm going to leave this open in the future release, Just for reference
that the bug exists, and that WordPress should perhaps deal with it
itself..
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10369#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list