mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-02 01:01:18 +03:00

When a pledge is selected but the auth token is missing/incorrect, this will give a clear path for re-requesting a new valid manage link
25 lines
724 B
PHP
25 lines
724 B
PHP
<?php
|
|
|
|
namespace WordPressDotOrg\FiveForTheFuture\View;
|
|
use const WordPressDotOrg\FiveForTheFuture\Pledge\CPT_ID;
|
|
use function WordPressDotOrg\FiveForTheFuture\get_views_path;
|
|
|
|
defined( 'WPINC' ) || die();
|
|
|
|
$pledge_id = ( CPT_ID === get_post_type() ) ? get_post()->ID : absint( $_REQUEST['pledge_id'] ?? 0 );
|
|
$pledge_name = get_the_title( $pledge_id );
|
|
?>
|
|
|
|
<div id="send-link-dialog">
|
|
<?php require get_views_path() . 'partial-result-messages.php'; ?>
|
|
|
|
<p>
|
|
<?php echo esc_html( sprintf(
|
|
__( "If you're the admin for %s, enter your email address and a confirmation link will be sent to you.", 'wporg-5ftf' ),
|
|
$pledge_name
|
|
) ); ?>
|
|
</p>
|
|
|
|
<?php require get_views_path() . 'form-request-manage-link.php'; ?>
|
|
</div>
|