From 725fdbb94beb49a777da1995a3a9c40eb6170397 Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Fri, 22 Nov 2019 16:10:52 -0500 Subject: [PATCH] Hide confirmation when pledge is a draft --- plugins/wporg-5ftf/includes/pledge-meta.php | 1 + plugins/wporg-5ftf/views/manage-contributors.php | 5 ++--- themes/wporg-5ftf/css/objects/_pledge-form.scss | 8 ++++++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/plugins/wporg-5ftf/includes/pledge-meta.php b/plugins/wporg-5ftf/includes/pledge-meta.php index 143b2a0..350849f 100755 --- a/plugins/wporg-5ftf/includes/pledge-meta.php +++ b/plugins/wporg-5ftf/includes/pledge-meta.php @@ -209,6 +209,7 @@ function add_meta_boxes() { function render_meta_boxes( $pledge, $box ) { $readonly = ! current_user_can( 'edit_page', $pledge->ID ); $is_manage = true; + $pledge_id = $pledge->ID; $data = array(); foreach ( get_pledge_meta_config() as $key => $config ) { diff --git a/plugins/wporg-5ftf/views/manage-contributors.php b/plugins/wporg-5ftf/views/manage-contributors.php index 96f6e3a..fd697d7 100644 --- a/plugins/wporg-5ftf/views/manage-contributors.php +++ b/plugins/wporg-5ftf/views/manage-contributors.php @@ -4,8 +4,7 @@ namespace WordPressDotOrg\FiveForTheFuture\View; use function WordPressDotOrg\FiveForTheFuture\get_views_path; /** @var array $contributors */ -/** @var array $data */ -/** @var bool $readonly */ +/** @var int $pledge_id */ ?>
-
+