From 6444539f46af1637fcc19a20915289a2296f7cd7 Mon Sep 17 00:00:00 2001 From: iandunn Date: Wed, 25 Oct 2017 14:04:14 +0000 Subject: [PATCH] WordCamp Budgets Dashboard: Restore current blog before returning early. See #3190 Props SergeyBiryukov git-svn-id: http://meta.svn.wordpress.org/sites/trunk/wordcamp.org@6052 74240141-8908-4e6f-9713-ba540dce6ec7 --- .../includes/sponsor-invoices-dashboard.php | 1 + 1 file changed, 1 insertion(+) diff --git a/public_html/wp-content/plugins/wordcamp-payments-network/includes/sponsor-invoices-dashboard.php b/public_html/wp-content/plugins/wordcamp-payments-network/includes/sponsor-invoices-dashboard.php index 8a50e1e800..55914807e9 100644 --- a/public_html/wp-content/plugins/wordcamp-payments-network/includes/sponsor-invoices-dashboard.php +++ b/public_html/wp-content/plugins/wordcamp-payments-network/includes/sponsor-invoices-dashboard.php @@ -349,6 +349,7 @@ function notify_organizer_status_changed( $site_id, $invoice_id, $new_status ) { } elseif ( 'paid' === $new_status ) { $status_message = "has been paid by $sponsor_name. Go ahead and publish them to your website!"; } else { + restore_current_blog(); return; }