revert flush_rules change
authorChuck Scott <cscott@gaslightmedia.com>
Fri, 17 Jun 2016 14:12:54 +0000 (10:12 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Fri, 17 Jun 2016 14:13:06 +0000 (10:13 -0400)
setup/frontHooks.php

index 36071ca..7a42048 100644 (file)
@@ -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();
     }
 });