fix compatibility wp 3.0