Fix broken query parsing under Wordpress 3.5.1.