fixes for wp version 3.8