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.
This commit is contained in:
Ian Dunn 2019-10-24 07:23:17 -07:00
parent 8020e43fb9
commit 6b33c4dbd0
No known key found for this signature in database
GPG key ID: 99B971B50343CBCB
2 changed files with 19 additions and 5 deletions

View file

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

View file

@ -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
*/
?>
<p>
@ -24,11 +28,20 @@ use function WordPressDotOrg\FiveForTheFuture\get_views_path;
<?php if ( true === $complete ) : ?>
<div class="notice notice-success notice-alt">
<p><?php esc_html_e( 'Thanks for pledging Five for the Future! Your new pledge profile has been created, and weve emailed you a link you can use to edit your pledge in the future. Your contributors have also been emailed a link to confirm their contributions with your organization.', 'wporg' ); ?></p>
<p><?php esc_html_e( 'Thanks for pledging to Five for the Future! Your new pledge profile has been created, and weve emailed you a link to confirm your address. Your contributors have also been emailed a link to confirm their participation with your organization.', 'wporg' ); ?></p>
<p><?php esc_html_e( 'Once your pledge has been approved by a moderator, it will appear in the pledges list.', 'wporg' ); ?></p>
<p>
<?php echo wp_kses_post( sprintf(
__( 'After those steps are completed, your pledge will appear in <a href="%s">the directory</a>.', 'wporg' ),
esc_url( $directory_url )
) ); ?>
</p>
<p><?php esc_html_e( 'Want to hire additional employees to contribute to WordPress? Post a job listing on jobs.wordpress.net.', 'wporg' ); ?></p>
<p>
<?php echo wp_kses_post(
__( 'Do you want to hire additional employees to contribute to WordPress? <a href="https://jobs.wordpress.net">Post a job listing on jobs.wordpress.net</a>.', 'wporg' )
); ?>
</p>
</div>
<?php else : ?>