From 6b33c4dbd08bce981eef3717ac2e0c9b53eb05eb Mon Sep 17 00:00:00 2001 From: Ian Dunn Date: Thu, 24 Oct 2019 07:23:17 -0700 Subject: [PATCH] Pledge Form: Update string to reflect latest flows. The link that they're emailed is to confirm their address, rather than to manage the pledge. Their pledge will be published once the address is confirmed and contributors have confirmed their participation, rather than after moderation. --- plugins/wporg-5ftf/includes/pledge-form.php | 1 + plugins/wporg-5ftf/views/form-pledge-new.php | 23 +++++++++++++++----- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/plugins/wporg-5ftf/includes/pledge-form.php b/plugins/wporg-5ftf/includes/pledge-form.php index 76275d3..ab4e3ba 100755 --- a/plugins/wporg-5ftf/includes/pledge-form.php +++ b/plugins/wporg-5ftf/includes/pledge-form.php @@ -27,6 +27,7 @@ function render_form_new() { $data = get_form_submission(); $messages = []; $complete = false; + $directory_url = get_permalink( get_page_by_path( 'pledges') ); if ( 'Submit Pledge' === $action ) { $processed = process_form_new(); diff --git a/plugins/wporg-5ftf/views/form-pledge-new.php b/plugins/wporg-5ftf/views/form-pledge-new.php index bfdd8be..c23ec62 100755 --- a/plugins/wporg-5ftf/views/form-pledge-new.php +++ b/plugins/wporg-5ftf/views/form-pledge-new.php @@ -3,8 +3,12 @@ namespace WordPressDotOrg\FiveForTheFuture\View; use function WordPressDotOrg\FiveForTheFuture\get_views_path; -/** @var array $messages */ -/** @var bool $complete */ +/** + * @var array $messages + * @var bool $complete + * @var string $directory_url + */ + ?>

@@ -24,11 +28,20 @@ use function WordPressDotOrg\FiveForTheFuture\get_views_path;

-

+

-

+

+ the directory.', 'wporg' ), + esc_url( $directory_url ) + ) ); ?> +

-

+

+ Post a job listing on jobs.wordpress.net.', 'wporg' ) + ); ?> +