update for wordpress3.6