replaced deprecated wp function in title tag