mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-04 10:05:43 +03:00
Endpoints: Update handler to "manage contributors"
This commit is contained in:
parent
4594c44597
commit
171c70e03e
3 changed files with 9 additions and 8 deletions
|
@ -51,7 +51,7 @@ jQuery( document ).ready( function( $ ) {
|
|||
}
|
||||
|
||||
/**
|
||||
* Send an ajax request using the `manage_contributors` action. This function also automatically adds the
|
||||
* Send an ajax request using the `manage-contributors` action. This function also automatically adds the
|
||||
* nonce, which should be defined in the global FiveForTheFuture variable.
|
||||
*
|
||||
* @param {Object} data - A list of data to send to the endpoint.
|
||||
|
@ -65,7 +65,7 @@ jQuery( document ).ready( function( $ ) {
|
|||
type: 'POST',
|
||||
url: ajaxurl,
|
||||
data: Object.assign( {
|
||||
action: 'manage_contributors',
|
||||
action: 'manage-contributors',
|
||||
pledge_id: FiveForTheFuture.pledgeId,
|
||||
_ajax_nonce: FiveForTheFuture.manageNonce,
|
||||
}, data ),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue