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

index d5cd38d..d2f77fb 100644 (file)
@@ -44,7 +44,7 @@ add_filter('init', function() {
     $rules = get_option( 'rewrite_rules' );
     if ( ! isset( $rules['('.$this->config['settings']['canonical_package_page'].')/([^/]*)$'] ) ) {
         global $wp_rewrite;
-// Seems to cause loss of rewrite rules -Need to investigate        $wp_rewrite->flush_rules();
+        $wp_rewrite->flush_rules();
     }
 });