Modifying post titles on pages, archives and single but not dashboard/admin

Move the return $title; one line lower. You are not returning anything for administration.

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