fixed wp 3.5 compatibility issue