Will $current_user no longer be global?

The $current_user is still a valid global, however like all globals, you should avoid relying on them.

If you need the current user in a function, do this instead:

$current_user = wp_get_current_user();

Also be aware that this may return false if no user is logged in on the current request, while the global $current_user may simply be an invalid instance of the WP_User (with an ID of zero). This is for backwards compatibility, and a wonderful reason to not rely on the globals.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)