移动WordPress内容文件夹

I was trying to move WP content folder from default WP content directory.

I followed all instructions on this Codex section Moving wp-content folder

define( 'WP_CONTENT_DIR', dirname(__FILE__) . '/public/content' );
define( 'WP_CONTENT_URL', 'http://project.me/public/content' );

With this code I've moved the wp-content folder to the desired location but the problem I'm having is that when I try to install any theme, plugin or upload any media file then it asks me for FTP connection information. Look at this screenshot below. After entering credentials it doesn't work, both on local & live web servers.

FTP Credentials prompt

How can I fix this? Where am I making a mistake?

The new location of the folder does not have proper permissions. You will have to change the permissions of that directory or enter the information that Wordpress is asking you for. A third option could even be to ftp into the server via filezilla, cyberduck, or something like that and upload via one of these tools.

As far as the directory permissions are concerned I can't help you there unless you disclose your server type.