added back compatibility for wp <3.9