[wp-hackers] Uninstall Handling
Ken Brucker
Ken at pumastudios.com
Sun Apr 10 20:33:56 UTC 2011
On Apr 10, 2011, at 12:41 PM, scribu wrote:
> On Sun, Apr 10, 2011 at 6:07 PM, Ken Brucker <Ken at pumastudios.com> wrote:
>
>> What I envision as a viable solution is in the 'Delete' process to add an
>> option to only execute the plugin uninstall action and leave the file system
>> untouched. The action could finish with a notice to the user that to
>> complete the removal of the plugin the related files should be removed.
>>
>
> Actually, the uninstall procedure is run even if the file deletion fails.
>
> This does not happen, however, if you're prompted for the FTP credentials
> and you don't provide them, as it's considered you aborted the procedure.
The logic appears to require a valid login to continue past the FTP credential screen. What would be ideal are three possible paths when prompted for the FTP credentials.
1) Supply valid credentials - process continues
2) Abort Operation
3) Run the plugin uninstall method
>
> So, to do achieve the effect you want, just add this line in your
> wp-config.php file:
>
> define('FS_METHOD', 'direct');
>
> This will prevent the FTP credentials from appearing.
Thanks for the suggestion for this define.
This does work in my specific case, in general an intuitive method to get through this process would be a great addition in terms of ease of use.
-- Ken
More information about the wp-hackers
mailing list