after_setup_theme is called three times

Hooks and filters can have several Actions attached. Hence the $priority argument. In short: It’s just a big multi dimensional array where the key is the hook/filter name and the values are the attached callbacks plus their priority.

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