Why WordPress asking for my FTP credentials to update to new version

just add ¬†define(‘FS_METHOD’, ‘direct’) to your ¬†wp-config.php like this:

 

/** Absolute path to the WordPress directory. */
if ( !defined(‘ABSPATH’) )
define(‘ABSPATH’, dirname(__FILE__) . ‘/’);

/** Sets up WordPress vars and included files. */
require_once(ABSPATH . ‘wp-settings.php’);
define(‘FS_METHOD’, ‘direct’);