[wp-trac] Re: [WordPress Trac] #8400: Plugin upgrade not possible
without being script owner
WordPress Trac
wp-trac at lists.automattic.com
Mon Dec 29 05:31:06 GMT 2008
#8400: Plugin upgrade not possible without being script owner
--------------------------+-------------------------------------------------
Reporter: sigvei | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 2.8
Component: Plugins | Version: 2.6
Severity: normal | Resolution: wontfix
Keywords: |
--------------------------+-------------------------------------------------
Changes (by DD32):
* status: new => closed
* resolution: => wontfix
Comment:
Indeed the current setup does not check Group ownerships, The main problem
with supporting that method is that new files will be created as owned by
www-data, and not as by your username, which will then cause problems,
specifically which were to be worked around by the FTP methods.
You can use a plugin such as the one below to force it to use the Direct
Method regardless (And take the onus of any problems on yourself):
{{{
<?php
/*
Plugin Name: Force WP Filesystem to use the 'direct' class
Version: 1.0
Plugin URI: http://dd32.id.au/wordpress-plugins/?force-direct
Description: Forces the WP_Filesystem to utilise the Direct Filesystem
abstraction library. <strong>Testing purposes only, Do not rely upon this
for constant use</strong>
Author: Dion Hulse
Author URI: http://dd32.id.au/
*/
add_filter('filesystem_method', 'force_direct');
function force_direct($method) {
return 'direct';
}
?>
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/8400#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list