Remove view abstraction

This was useful in previous iterations of this function, but now just obscures the included file
This commit is contained in:
Kelly Dwan 2019-12-09 16:30:14 -05:00
parent 58f6d9ce2a
commit 6b65f9efbe
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D

View file

@ -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();
}