Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
* 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);

This comment has been minimized.

Copy link

@octalmage octalmage commented Jan 14, 2014


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