Skip to content

Instantly share code, notes, and snippets.

@mikevanwinkle
Created January 14, 2014 06:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikevanwinkle/8414122 to your computer and use it in GitHub Desktop.
Save mikevanwinkle/8414122 to your computer and use it in GitHub Desktop.
<?php
/**
* disables a fast 404 optimization
**/
function wpewa20140105() {
header('wpengine-workaround-20140105: present');
$unhook = array(WpeCommon::instance(), 'is_404');
remove_action('template_redirect', $unhook, 100);
remove_action('bp_init', $unhook, 100);
}
add_action('init', 'wpewa20140105', 100);
@octalmage
Copy link

Score.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment