mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-06 10:45:44 +03:00
Pledges: Move contributor management UI to separate file (#47)
Having both the input for adding a comma separated list of contributors to a new pledge and the UI for managing the contributors on an existing pledge in the same file was confusing and it conflated two different pieces of functionality. It also caused `undefined index` errors in some views because `'pledge-contributors'` only exists when submitting the new pledge form.
This commit is contained in:
parent
6fe5a92c7b
commit
59713ca0f1
4 changed files with 59 additions and 55 deletions
|
@ -168,7 +168,7 @@ function render_meta_boxes( $pledge, $box ) {
|
|||
break;
|
||||
|
||||
case 'pledge-contributors':
|
||||
require FiveForTheFuture\get_views_path() . 'inputs-pledge-contributors.php';
|
||||
require FiveForTheFuture\get_views_path() . 'manage-contributors.php';
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue