Commit c5bc2eeb authored by haystack's avatar haystack 🤔

do not implement rewrite rules during installation

parent e09a55a3
...@@ -610,6 +610,9 @@ class CiviCRM_For_WordPress { ...@@ -610,6 +610,9 @@ class CiviCRM_For_WordPress {
// Register user hooks // Register user hooks
$this->users->register_hooks(); $this->users->register_hooks();
// If CiviCRM is installed, we can use clean URLs.
if ( CIVICRM_INSTALLED ) {
// Have we flushed rewrite rules? // Have we flushed rewrite rules?
if ( get_option( 'civicrm_rules_flushed' ) !== 'true' ) { if ( get_option( 'civicrm_rules_flushed' ) !== 'true' ) {
...@@ -629,6 +632,7 @@ class CiviCRM_For_WordPress { ...@@ -629,6 +632,7 @@ class CiviCRM_For_WordPress {
// Add our query vars // Add our query vars
add_filter( 'query_vars', array( $this, 'query_vars' ) ); add_filter( 'query_vars', array( $this, 'query_vars' ) );
}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment