Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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

This comment has been minimized.

Copy link

@octalmage octalmage commented Jan 14, 2014

Score.

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