compatiable to WP 3.2 and below