From 096cdcdb316ef2434973fea82bc503b74cb2870f Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Thu, 16 Jun 2016 14:27:17 -0400 Subject: [PATCH] Commented out flush_rules() as it was clearing rewrite rules - need to investigate --- setup/frontHooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/frontHooks.php b/setup/frontHooks.php index 7a42048..36071ca 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; - $wp_rewrite->flush_rules(); +// Seems to cause loss of rewrite rules -Need to investigate $wp_rewrite->flush_rules(); } }); -- 2.17.1