From 6b65f9efbea1ef5cd3f786c0373b9fab52cf12ef Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Mon, 9 Dec 2019 16:30:14 -0500 Subject: [PATCH] Remove view abstraction This was useful in previous iterations of this function, but now just obscures the included file --- plugins/wporg-5ftf/includes/pledge-form.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/wporg-5ftf/includes/pledge-form.php b/plugins/wporg-5ftf/includes/pledge-form.php index b0feb4e..48755e1 100755 --- a/plugins/wporg-5ftf/includes/pledge-form.php +++ b/plugins/wporg-5ftf/includes/pledge-form.php @@ -34,7 +34,6 @@ function render_form_new() { $pledge = null; $complete = false; $directory_url = home_url( 'pledges' ); - $view = 'form-pledge-new.php'; if ( 'Submit Pledge' === $action ) { $pledge_id = process_form_new(); @@ -48,7 +47,7 @@ function render_form_new() { ob_start(); $readonly = false; - require FiveForTheFuture\get_views_path() . $view; + require FiveForTheFuture\get_views_path() . 'form-pledge-new.php'; return ob_get_clean(); }