WP 3.5 compatibility fix