Skip to content

Commit 90a3306

Browse files
committed
Don't create duplicate template sites during group-type installation.
See cuny-academic-commons/commons-in-a-box#535.
1 parent 2f970b6 commit 90a3306

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

includes/site-template.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,10 @@ function cboxol_create_site_template( $post_id, \WP_Post $post ) {
546546
return;
547547
}
548548

549+
if ( get_option( 'cboxol_installing' ) ) {
550+
return;
551+
}
552+
549553
if ( 'cboxol_site_template' !== $post->post_type ) {
550554
return;
551555
}

0 commit comments

Comments
 (0)