Skip to content

Commit 82f730a

Browse files
committed
Let sites regenerate rewrite rules after install. see #44.
1 parent e180665 commit 82f730a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

install.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ function jquery_install_site( $site, $user ) {
7171
$default_options = jquery_default_site_options();
7272
$default_options['admin_email'] = $user->user_email;
7373

74-
var_dump( $domain, $path, $site );
75-
7674
if ( 1 !== $details['blog_id'] ) {
7775
$blog_id = insert_blog( JQUERY_STAGING_PREFIX . $domain, $path, 1 );
7876
if ( $blog_id != $details['blog_id'] )
@@ -89,6 +87,6 @@ function jquery_install_site( $site, $user ) {
8987
foreach ( $options as $option => $value )
9088
update_option( $option, $value );
9189

92-
flush_rewrite_rules();
90+
delete_option( 'rewrite_rules' );
9391
restore_current_blog();
9492
}

0 commit comments

Comments
 (0)