mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-06 02:45:43 +03:00
My Pledges: Append ID to nonce action to make it more unique.
Fixes #87
This commit is contained in:
parent
8230963ea4
commit
8e3ba2db96
2 changed files with 11 additions and 7 deletions
|
@ -44,7 +44,7 @@ namespace WordPressDotOrg\FiveForTheFuture\View;
|
|||
<input type="hidden" name="contributor_post_id" value="<?php echo esc_attr( $contributor_post->ID ); ?>" />
|
||||
|
||||
<?php if ( 'pending' === $contributor_post->post_status ) : ?>
|
||||
<?php wp_nonce_field( 'join_decline_organization' ); ?>
|
||||
<?php wp_nonce_field( 'join_decline_organization_' . $contributor_post->ID ); ?>
|
||||
|
||||
<input
|
||||
type="submit"
|
||||
|
@ -61,7 +61,7 @@ namespace WordPressDotOrg\FiveForTheFuture\View;
|
|||
/>
|
||||
|
||||
<?php elseif ( 'publish' === $contributor_post->post_status ) : ?>
|
||||
<?php wp_nonce_field( 'leave_organization' ); ?>
|
||||
<?php wp_nonce_field( 'leave_organization_' . $contributor_post->ID ); ?>
|
||||
|
||||
<input
|
||||
type="submit"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue