From dafe30bc1e013a9329e176f4fd4662897da58f99 Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Fri, 17 Jun 2016 10:12:54 -0400 Subject: [PATCH] revert flush_rules change --- setup/frontHooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/frontHooks.php b/setup/frontHooks.php index 36071ca..7a42048 100644 --- a/setup/frontHooks.php +++ b/setup/frontHooks.php @@ -44,7 +44,7 @@ add_filter('init', function() { $rules = get_option( 'rewrite_rules' ); if ( ! isset( $rules['('.$this->config['settings']['canonical_event_page'].')/([^/]*)$'] ) ) { global $wp_rewrite; -// Seems to cause loss of rewrite rules -Need to investigate $wp_rewrite->flush_rules(); + $wp_rewrite->flush_rules(); } }); -- 2.17.1