Manage Pledge: Update email dialog to use JS submission (#104)

Use the proper dialog behavior for submitting an email to generate a manage link.

Fixes #98.
This commit is contained in:
Kelly Dwan 2019-11-21 15:31:29 -05:00 committed by GitHub
parent a67ef04505
commit a11e3c5fa5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 1202 additions and 134 deletions

View file

@ -55,7 +55,10 @@ get_header();
<h2><?php esc_html_e( 'About', 'wporg' ); ?></h2>
<div class="pledge-company-description">
<?php echo wpautop( wp_kses_data( $post->{ META_PREFIX . 'org-description' } ) ); ?>
<?php
// phpcs:ignore WordPress.Security.EscapeOutput -- wp_kses_data escapes the content.
echo wpautop( wp_kses_data( $post->{ META_PREFIX . 'org-description' } ) );
?>
</div>
<?php if ( ! empty( $contributors ) ) : ?>
@ -130,9 +133,7 @@ get_header();
</a>
</div>
<div class="edit-pledge-wrapper">
<?php do_shortcode( '[5ftf_pledge_form_manage_link]' ); ?>
</div>
<?php do_action( 'pledge_footer' ); ?>
</footer>
</article>