From: Chuck Scott Date: Thu, 16 Jun 2016 18:27:17 +0000 (-0400) Subject: Commented out flush_rules() as it was clearing rewrite rules - need to investigate X-Git-Tag: v1.2.5^2~2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=096cdcdb316ef2434973fea82bc503b74cb2870f;p=WP-Plugins%2Fglm-member-db-events.git Commented out flush_rules() as it was clearing rewrite rules - need to investigate --- 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(); } });