Sometimes when upgrading WordPress via its admin panel, WordPress will ask for FTP account.
Follow these steps to upgrade WordPress without requiring FTP account:
1. Edit wp-config.php and add the following line:
2. Save wp-config.php and upload the file to the web server.