From 71e30ef3316ea04ed946706bcbbeb67c494831e4 Mon Sep 17 00:00:00 2001 From: Ian Dunn Date: Wed, 20 Sep 2023 08:51:31 -0700 Subject: [PATCH] Site Cloner: Warn before cloning into closed camp. This helps to avoid unintentionally overwriting an old site with a new one when the organizer actually intends to clone _from_ the old site _to_ a new one. --- .../templates/site-control.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/public_html/wp-content/plugins/wordcamp-site-cloner/templates/site-control.php b/public_html/wp-content/plugins/wordcamp-site-cloner/templates/site-control.php index ec417bea1..ab8de00f4 100644 --- a/public_html/wp-content/plugins/wordcamp-site-cloner/templates/site-control.php +++ b/public_html/wp-content/plugins/wordcamp-site-cloner/templates/site-control.php @@ -7,6 +7,8 @@ namespace WordCamp\Site_Cloner; defined( 'WPINC' ) or die(); +$wordcamp = get_wordcamp_post(); + ?>
@@ -15,6 +17,18 @@ + post_status ) : ?> +
+

+ +

+
+ +