replace wp refs