When wordpress asks for FTP information to upgrade, you type it in and then it seems to store it for future use (for future upgrades, and maybe also for media uploads?)

Where does it store these details? Is it in a file? In the database?

I’m trying to figure out what information is being used to access the server.

Tried grep-ing for ftp in the php files and didnt see anything. This also doesn’t seem to be a setting that is exposed in the admin interface.

Thanks!

2 s
2

It doesn’t. WP Filesystem API will ask for FTP credentials, but it will do so for each operation. They aren’t stored persistently.

They can be stored persistently by hardcoding into wp-config.php, but WP won’t do that itself, it’s a user action.

Note that WP only asks for FTP credentials if it cannot modify files without them. If specific setup used to ask for them and stopped then likely the server configuration or file permissions had changed and now allow WP to manipulate files without going through FTP.

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *