mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-01 16:51:18 +03:00
Remove view abstraction
This was useful in previous iterations of this function, but now just obscures the included file
This commit is contained in:
parent
58f6d9ce2a
commit
6b65f9efbe
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue