This is setting `$_GET['post_type']` on every single page load if `$_GET['post_type']` is not set. It's not clear why that needs to be done, but it does break things (e.g. all single 'page' views).